Skip to content

Instantly share code, notes, and snippets.

View dmitrykondratenko86's full-sized avatar

dmitrykondratenko86

View GitHub Profile
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
@model PVT.Shop.Web.Models.Users.Users
@{
Layout = null;
}
<!DOCTYPE html>
<html>
@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>
public void AddProduct(IProduct product)
{
ListProducts.Add(product);
}
public void RemoveProduct(IProduct product)
{
ListProducts.Remove(product);
}
public void SaleProduct(IProduct product)
{
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
{