Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion MyShop/MyShop.Core/Models/Product.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class Product : BaseEntity
public string Name { get; set; }
public string Description { get; set; }

[Range(0, 1000)]
[Range(0, 2000)]
public decimal Price { get; set; }
public string Category { get; set; }
public string Image { get; set; }
Expand Down
1 change: 1 addition & 0 deletions MyShop/MyShop.Core/ViewModels/ProductListViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ public class ProductListViewModel
{
public IEnumerable<Product> Products { get; set; }
public IEnumerable<ProductCategory> ProductCategories { get; set; }
public Customer Customer { get; set; }
}
}
2 changes: 1 addition & 1 deletion MyShop/MyShop.DataAccess.SQL/App.config
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
</configSections>
<connectionStrings>
<add name="DefaultConnection" connectionString="Data Source=localhost\SQLEXPRESS;Initial Catalog=MyShop;Integrated Security=True" providerName="System.Data.SqlClient" />
<add name="DefaultConnection" connectionString="Data Source=localhost;Initial Catalog=MyShop;Integrated Security=True" providerName="System.Data.SqlClient" />
</connectionStrings>
<entityFramework>
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.SqlConnectionFactory, EntityFramework" />
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 5 additions & 3 deletions MyShop/MyShop.WebUI/Controllers/HomeController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,22 @@ namespace MyShop.WebUI.Controllers
{
public class HomeController : Controller
{
IRepository<Customer> customers;
IRepository<Product> context;
IRepository<ProductCategory> productCategories;

public HomeController(IRepository<Product> productContext, IRepository<ProductCategory> productCategoryContext)
public HomeController(IRepository<Product> productContext, IRepository<ProductCategory> productCategoryContext, IRepository<Customer> Customers)
{
context = productContext;
productCategories = productCategoryContext;
customers = Customers;
}

public ActionResult Index(string Category=null)
{
List<Product> products;
List<ProductCategory> categories = productCategories.Collection().ToList();

Customer customer = customers.Collection().FirstOrDefault(c => c.Email == User.Identity.Name);
if (Category == null)
{
products = context.Collection().ToList();
Expand All @@ -36,7 +38,7 @@ public ActionResult Index(string Category=null)
ProductListViewModel model = new ProductListViewModel();
model.Products = products;
model.ProductCategories = categories;

model.Customer = customer;

return View(model);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

namespace MyShop.WebUI.Controllers
{
[Authorize(Roles = "Admin")]

public class ProductCategoryManagerController : Controller
{
IRepository<ProductCategory> context;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

namespace MyShop.WebUI.Controllers
{
[Authorize(Roles = "Admin")]

public class ProductManagerController : Controller
{
IRepository<Product> context;
Expand Down
12 changes: 9 additions & 3 deletions MyShop/MyShop.WebUI/Views/Basket/BasketSummary.cshtml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
@model MyShop.Core.ViewModels.BasketSummaryViewModel

<ul class="nav navbar-nav navbar-right">
<li><a href="@Url.Action("Index", "Basket")">@Model.BasketCount items</a></li>
<li><a href="@Url.Action("Index", "Basket")">@String.Format("{0:c}", Model.BasketTotal)</a></li>
<ul class="nav navbar-nav navbar-right hidden">
<li><a style="color:black" href="@Url.Action("Index", "Basket")">@Model.BasketCount items</a></li>
<li><a style="color:black" href="@Url.Action("Index", "Basket")">@String.Format("{0:c}", Model.BasketTotal)</a></li>
</ul>


<ul class="nav navbar-nav navbar-right">
<li><a style="color:black" href="@Url.Action("Index", "Basket")"><i class="glyphicon glyphicon-shopping-cart"></i> Cart</a></li>

</ul
39 changes: 26 additions & 13 deletions MyShop/MyShop.WebUI/Views/Home/Index.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,39 @@
@{
ViewBag.Title = "Home Page";
}
<div class="col-lg-12" style="text-align:center">
<ul class="list-inline list-group" style="border: 1px solid #dedede;border-radius: 8px;">
@foreach (var cat in Model.ProductCategories)
{
<li>
@Html.ActionLink(cat.Category, "Index", new { Category = cat.Category }, new { @class = Request["Category"] == cat.Category ? "list-group-item active" : "list-group-item" })
</li>
}
</ul>

<h1>Products</h1>
</div>
<div class="col-lg-12">
@if (@Model.Customer != null)
{
<p style="font-size:36px;font-weight:500">Welcome @Model.Customer.FirstName;</p>
}
else
{
<p style="font-size:36px;font-weight:500">Welcome User</p>
}

<div class="col-md-2">
<h4>Filter by Category</h4>
<div class="list-group">
@Html.ActionLink("All", "Index", null, new { @class = Request["Category"]==null? "list-group-item active" : "list-group-item" })
@foreach (var cat in Model.ProductCategories) {
@Html.ActionLink(cat.Category, "Index", new { Category=cat.Category }, new { @class = Request["Category"] == cat.Category ? "list-group-item active" : "list-group-item" })
}
</div>
</div>
<div class="col-md-10">

<h3>Shop By Categories</h3>

<div class="col-md-12">

@foreach (var item in Model.Products)
{

<div class="col-md-4" style="height:450px;padding:10px;margin:10px;border: solid thin whitesmoke">
<div class="col-md-12">
<img class="img" style="height:250px" src="~/Content/ProductImages/@item.Image" />
<div class="card col-md-3" style="height:450px;margin-bottom:5px;padding:5px;border: solid thin whitesmoke">
<div class="col-md-12" >
<img class="img" style="width: 100%;" src="~/Content/ProductImages/@item.Image" />
</div>
<div class="col-md-12">
<strong>@Html.ActionLink(item.Name, "Details", new { id = item.Id })</strong>
Expand Down
57 changes: 48 additions & 9 deletions MyShop/MyShop.WebUI/Views/Shared/_Layout.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@
<title>@ViewBag.Title - My ASP.NET Application</title>
@Styles.Render("~/Content/css")
@Scripts.Render("~/bundles/modernizr")

</head>
<body>

<div class="navbar navbar-inverse navbar-fixed-top">
<div class="container">
<div class="navbar-header">
Expand All @@ -17,15 +18,29 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
@Html.ActionLink("Application name", "Index", "Home", new { area = "" }, new { @class = "navbar-brand" })
<a class="navbar-brand" href="/">
<span><img src="~/Content/ProductImages/logo.jpg" alt="logo" style="width:32px;"/></span>
<span style="color:black;font-weight:bold">M'LIFE-STORE</span><br/>
<U style="font-size:10px;float:right;color:black;font-weight:bold;font-style:unset">Experience the Lifestyle</U>
</a>
</div>
<div class="navbar-collapse collapse">
<div class="navbar-collapse collapse" style="font-size: 18px;">
<ul class="nav navbar-nav">
<li>@Html.ActionLink("Home", "Index", "Home")</li>
@if (Request.IsAuthenticated && User.IsInRole("Admin"))
{
<li>@Html.ActionLink("Admin", "Index", "Admin")</li>
}
<li><a style="color:black;" href="/">Home</a></li>
@if (Request.IsAuthenticated && User.IsInRole("Admin"))
{
<li><a style="color:black;" href="/Admin/Index">Admin</a></li>
}
<li>

<a style="padding-top:7px">
<form class="form-inline">
<input class="form-control form-control-sm ml-3 w-75" type="text" placeholder="Search" aria-label="Search">
<i style="color:black" class="btn btn-success glyphicon glyphicon-search"></i>
</form>
</a>

</li>
</ul>
@Html.Partial("_LoginPartial")
@{
Expand All @@ -34,7 +49,7 @@
</div>
</div>
</div>
<div class="container body-content">
<div class="container body-content" style="margin-top:2%;">
@RenderBody()
<hr />
<footer>
Expand All @@ -45,5 +60,29 @@
@Scripts.Render("~/bundles/jquery")
@Scripts.Render("~/bundles/bootstrap")
@RenderSection("scripts", required: false)
<style type="text/css">

.navbar-inverse {
background-color: #fff !important;
border-color: #ffffff !important;
}

.navbar-brand {
padding: 12px 12px !important;

}

.list-group-item {
border:0px solid !important;
}

.list-group-item.active {
background-color:darkgrey !important;
border-radius:0px !important;
}

</style>

</body>
</html>

13 changes: 8 additions & 5 deletions MyShop/MyShop.WebUI/Views/Shared/_LoginPartial.cshtml
Original file line number Diff line number Diff line change
@@ -1,22 +1,25 @@
@using Microsoft.AspNet.Identity

@if (Request.IsAuthenticated)
{
using (Html.BeginForm("LogOff", "Account", FormMethod.Post, new { id = "logoutForm", @class = "navbar-right" }))
using (Html.BeginForm("LogOff", "Account", FormMethod.Post, new { id = "logoutForm", @class = "navbar-right"}))
{
@Html.AntiForgeryToken()

<ul class="nav navbar-nav navbar-right">
<li>
@Html.ActionLink("Hello " + User.Identity.GetUserName() + "!", "Index", "Manage", routeValues: null, htmlAttributes: new { title = "Manage" })
<a style="color:black" href="/Manage" title="Manage"> <i class="glyphicon glyphicon-user"></i>Hi @User.Identity.GetUserName()</a>

</li>
<li><a href="javascript:document.getElementById('logoutForm').submit()">Log off</a></li>
<li><a style="color:black" href="javascript:document.getElementById('logoutForm').submit()">Log off</a></li>
</ul>
}
}
else
{

<ul class="nav navbar-nav navbar-right">
<li>@Html.ActionLink("Register", "Register", "Account", routeValues: null, htmlAttributes: new { id = "registerLink" })</li>
<li>@Html.ActionLink("Log in", "Login", "Account", routeValues: null, htmlAttributes: new { id = "loginLink" })</li>
<li>@Html.ActionLink("Register", "Register", "Account", routeValues: null, htmlAttributes: new { id = "registerLink", Style = "color:black" })</li>
<li>@Html.ActionLink("Log in", "Login", "Account", routeValues: null, htmlAttributes: new { id = "loginLink", Style = "color:black" })</li>
</ul>
}
2 changes: 1 addition & 1 deletion MyShop/MyShop.WebUI/Web.config
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 --></configSections>
<connectionStrings>
<add name="DefaultConnection" connectionString="Data Source=localhost\SQLEXPRESS;Initial Catalog=MyShop;Integrated Security=True" providerName="System.Data.SqlClient" />
<add name="DefaultConnection" connectionString="Data Source=localhost;Initial Catalog=MyShop;Integrated Security=True" providerName="System.Data.SqlClient" />
</connectionStrings>
<appSettings>
<add key="webpages:Version" value="3.0.0.0" />
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
# MyShop
My Shop eCommerce Demo

Admin account credentials

Email = admin@mlifestore.com
password = !Qaz2wsx
113 changes: 113 additions & 0 deletions SQLScripts/IntialScript.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
Go
INSERT INTO ProductCategories (id, Category,CreatedAt) VALUES
(NEWID(),'Books',GETDATE()),
(NEWID(),'Video Games',GETDATE()),
(NEWID(),'Beauty',GETDATE()),
(NEWID(),'Furniture',GETDATE()),
(NEWID(),'Watches',GETDATE()),
(NEWID(),'Health & Personal Care',GETDATE()),
(NEWID(),'Toys & Games',GETDATE()),
(NEWID(),'Software',GETDATE()),
(NEWID(),'Jewellery ',GETDATE()),
(NEWID(),'Computers & Accessories',GETDATE()),
(NEWID(),'Music',GETDATE()),
(NEWID(),'Electronics',GETDATE()),
(NEWID(),'Movies & TV Shows',GETDATE()),
(NEWID(),'Sports, Fitness & Outdoors',GETDATE()),
(NEWID(),'Luggage & Bags',GETDATE()),
(NEWID(),'Shoes & Handbags',GETDATE()),
(NEWID(),'Kindle Store',GETDATE()),
(NEWID(),'Baby',GETDATE()),
(NEWID(),'Clothing & Accessories',GETDATE()),
(NEWID(),'Office Products',GETDATE()),
(NEWID(),'Lawn & Garden',GETDATE()),
(NEWID(),'Home & Kitchen',GETDATE()),
(NEWID(),'Musical Instruments',GETDATE())


select * from products

Go
--Watches
insert into Products(ID,Name,Description,Price,Category,Image,CreatedAt) Values
(NewID(),'Rorlig RR-028 ','Rorlig RR-028 Expedition Analog Watch - For Men, Boys ',1099 ,'2069294A-660E-42D6-ACAC-FED3E9D2678E',NULL,getDate()),
(NewID(),'Minuut MNT-017','Minuut MNT-017-SPT-BLU Analog Watch - For Men ',1199 ,'2069294A-660E-42D6-ACAC-FED3E9D2678E',NULL,getDate()),
(NewID(),'T STAR UFT-TSW','T STAR UFT-TSW-005-BK-BR Analog Watch - For Boys ',999 ,'2069294A-660E-42D6-ACAC-FED3E9D2678E',NULL,getDate()),
(NewID(),'Anno Dominii A','Anno Dominii ADWB0000139 Watch Box ',1499 ,'2069294A-660E-42D6-ACAC-FED3E9D2678E',NULL,getDate()),
(NewID(),'Alfajr WY16B Y','Alfajr WY16B Youth Digital Watch - For Men, Boys ',5495 ,'2069294A-660E-42D6-ACAC-FED3E9D2678E',NULL,getDate()),
(NewID(),'TAG Heuer CAU1','TAG Heuer CAU1116.BA0858 Formula 1 Analog Watch - For Boys, Men ' ,1077 ,'2069294A-660E-42D6-ACAC-FED3E9D2678E',NULL,getDate()),
(NewID(),'Merchant eshop','Merchant eshop Boys, Men, Girls, Women ',399 ,'2069294A-660E-42D6-ACAC-FED3E9D2678E',NULL,getDate()),
(NewID(),'Romex Ultimate','Romex Ultimate Urban Analog Watch - For Boys, Men ',1199 ,'2069294A-660E-42D6-ACAC-FED3E9D2678E',NULL,getDate()),
(NewID(),'Ridas 1825_bla','Ridas 1825_black Sports Analog Watch - For Men ' ,677 ,'2069294A-660E-42D6-ACAC-FED3E9D2678E',NULL,getDate()),
(NewID(),'Relish R456 An','Relish R456 Analog Watch - For Men ' ,699 ,'2069294A-660E-42D6-ACAC-FED3E9D2678E',NULL,getDate()),
(NewID(),'Rich Club RC-2','Rich Club RC-2166WHT Solitaire Analog Watch - For Girls, Women ' ,999 ,'2069294A-660E-42D6-ACAC-FED3E9D2678E',NULL,getDate()),
(NewID(),'Costa Swiss CS','Costa Swiss CS-2001 Analog Watch - For Boys, Men ',1199 ,'2069294A-660E-42D6-ACAC-FED3E9D2678E',NULL,getDate()),
(NewID(),'Breitling AB01','Breitling AB011010/BB08 131S Chronomat 44 Analog Watch - For Boys, Men ' ,5712 ,'2069294A-660E-42D6-ACAC-FED3E9D2678E',NULL,getDate()),
(NewID(),'Calibro SW-125','Calibro SW-125 Analog-Digital Watch - For Men, Boys ' ,2000 ,'2069294A-660E-42D6-ACAC-FED3E9D2678E',NULL,getDate()),
(NewID(),'Rochees RW50 A','Rochees RW50 Analog Watch - For Boys ',1120 ,'2069294A-660E-42D6-ACAC-FED3E9D2678E',NULL,getDate()),
(NewID(),'Fluid DMF-002-','Fluid DMF-002-GR01 Digital Watch - For Boys ' ,1699 ,'2069294A-660E-42D6-ACAC-FED3E9D2678E',NULL,getDate()),
(NewID(),'Rorlig RR-030 ','Rorlig RR-030 Essentials Analog Watch - For Men, Boys ',1099 ,'2069294A-660E-42D6-ACAC-FED3E9D2678E',NULL,getDate()),
(NewID(),'Disney DW10023','Disney DW100230 Digital Watch - For Boys, Girls ' ,350 ,'2069294A-660E-42D6-ACAC-FED3E9D2678E',NULL,getDate()),
(NewID(),'Cartier W67010','Cartier W6701005 Analog Watch - For Boys, Men ',1010 ,'2069294A-660E-42D6-ACAC-FED3E9D2678E',NULL,getDate()),
(NewID(),'Lois Caron LCS','Lois Caron LCS-4032 Analog Watch - For Boys, Men ',1200 ,'2069294A-660E-42D6-ACAC-FED3E9D2678E',NULL,getDate()),
(NewID(),'Sakhi Styles B','Sakhi Styles Boys, Men ',299 ,'2069294A-660E-42D6-ACAC-FED3E9D2678E',NULL,getDate()),
(NewID(),'Sakhi Styles M','Sakhi Styles Men, Boys ',399 ,'2069294A-660E-42D6-ACAC-FED3E9D2678E',NULL,getDate()),
(NewID(),'Britex BT9026 ','Britex BT9026 Bluetec Bucherer Analog Watch - For Boys, Men ' ,2499 ,'2069294A-660E-42D6-ACAC-FED3E9D2678E',NULL,getDate()),
(NewID(),'Felix Y 39 Ana','Felix Y 39 Analog Watch - For Boys, Men ' ,1550 ,'2069294A-660E-42D6-ACAC-FED3E9D2678E',NULL,getDate()),
(NewID(),'Kool Kidz DMK-','Kool Kidz DMK-012-QU02 Analog Watch - For Girls, Boys ',375 ,'2069294A-660E-42D6-ACAC-FED3E9D2678E',NULL,getDate()),
(NewID(),'Franck Bella F','Franck Bella FB0128B Analog Watch - For Men, Boys ',1199 ,'2069294A-660E-42D6-ACAC-FED3E9D2678E',NULL,getDate()),
(NewID(),'Kool Kidz DMK-','Kool Kidz DMK-003-YL 03 Analog Watch - For Girls, Boys ' ,475 ,'2069294A-660E-42D6-ACAC-FED3E9D2678E',NULL,getDate()),
(NewID(),'Fogg Fashion S','Fogg Fashion Store 3003-PK Modish Analog Watch - For Women ' ,999 ,'2069294A-660E-42D6-ACAC-FED3E9D2678E',NULL,getDate()),
(NewID(),'Luba HH41 Styl','Luba HH41 Stylo Analog Watch - For Women ',350 ,'2069294A-660E-42D6-ACAC-FED3E9D2678E',NULL,getDate()),
(NewID(),'Vizion 8502-6B','Vizion 8502-6BLACK Sports Series Digital Watch - For Boys, Girls ',1095 ,'2069294A-660E-42D6-ACAC-FED3E9D2678E',NULL,getDate()),
(NewID(),'Luba DE45 Styl','Luba DE45 Stylo Analog Watch - For Women ',350 ,'2069294A-660E-42D6-ACAC-FED3E9D2678E',NULL,getDate()),
(NewID(),'Ridas 923_red ','Ridas 923_red Luxy Analog Watch - For Women, Girls ' ,449 ,'2069294A-660E-42D6-ACAC-FED3E9D2678E',NULL,getDate()),
(NewID(),'SVM Navratri S','SVM Navratri Special 7 Analog Watch - For Girls, Women ' ,2499 ,'2069294A-660E-42D6-ACAC-FED3E9D2678E',NULL,getDate()),
(NewID(),'Fighter FIGH_0','Fighter FIGH_008 Digital Watch - For Couple ' ,200 ,'2069294A-660E-42D6-ACAC-FED3E9D2678E',NULL,getDate())


GO


insert into AspNetRoles(id,Name)values
('B9F0FF29-C97E-4832-8D3B-0950C71A0D00','Admin'),
('DAB9E6DA-5F7B-4714-BE64-D6E22D027C21', 'User')

insert into AspNetUsers(id,Email,EmailConfirmed,PasswordHash,SecurityStamp,PhoneNumber,PhoneNumberConfirmed,TwoFactorEnabled,LockoutEndDateUtc,LockoutEnabled,AccessFailedCount,UserName)values
('d6ee11f5-2403-426d-8ed0-461f51bed14f', 'admin@mlifestore.com', 0, 'ANy34NKbw5U7ZtnjoseXrrL+cSSIqKm66v3XEOC2j7ICWq+hd9nqc6uNI4gz9o5MHg==', '296f8155-e4fa-451d-9d3e-2d889bf28cb6', NULL, 0, 0, NULL, 1, 0, 'admin@mlifestore.com')

insert into AspNetUserRoles(UserId, RoleId)values
('d6ee11f5-2403-426d-8ed0-461f51bed14f', 'B9F0FF29-C97E-4832-8D3B-0950C71A0D00')