This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Web; | |
| using System.Web.Mvc; | |
| using PVT.Shop.Web.Models.Users; | |
| namespace PVT.Shop.Web.Controllers | |
| { | |
| public class UsersController : Controller |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @model PVT.Shop.Web.Models.Users.Users | |
| @{ | |
| Layout = null; | |
| } | |
| <!DOCTYPE html> | |
| <html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @model PVT.Shop.Web.Models.Product.Product | |
| @{ | |
| ViewBag.Title = "Product"; | |
| } | |
| <div class="container" > | |
| <hr class="nav-divider" /> | |
| <div class="panel panel-default col-md-5"> | |
| <div class="panel-heading">Product</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public void AddProduct(IProduct product) | |
| { | |
| ListProducts.Add(product); | |
| } | |
| public void RemoveProduct(IProduct product) | |
| { | |
| ListProducts.Remove(product); | |
| } | |
| public void SaleProduct(IProduct product) | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Web; | |
| //using Roles=PVT.Shop.Web.Models.Roles; | |
| namespace PVT.Shop.Web.Models | |
| { | |
| public class Users | |
| { |