public ActionResult Delete(KNGServiceVm bind) { if (this.ModelState.IsValid) { this.service.DeleteService(bind.Id); return(this.RedirectToAction("All")); } return(this.View()); }
public ActionResult Delete(KNGServiceVm bind) { if (this.ModelState.IsValid) { string username = this.User.Identity.Name; this.service.GetToMyService(bind.Id, username); return(this.RedirectToAction("All")); } return(this.View()); }
public ActionResult Delete(int id) { KNGServiceVm deleteService = this.service.GetServiceBy(id); return(this.View(deleteService)); }
public ActionResult Get(int id) { KNGServiceVm vm = this.service.GetServiceBy(id); return(this.View(vm)); }