public ActionResult Delete(KNGProductVm bind) { if (this.ModelState.IsValid) { this.service.DeleteProduct(bind.Id); return(this.RedirectToAction("All")); } return(this.View()); }
public ActionResult Delete(KNGProductVm bind) { if (this.ModelState.IsValid) { string username = this.User.Identity.Name; this.service.GetToMyProduct(bind.Id, username); return(this.RedirectToAction("All")); } return(this.View()); }
public ActionResult Get(int id) { KNGProductVm vm = this.service.GetProductBy(id); return(this.View(vm)); }
public ActionResult Delete(int id) { KNGProductVm deleteProduct = this.service.GetProductBy(id); return(this.View(deleteProduct)); }