Exemple #1
0
 public ActionResult Delete(KNGServiceVm bind)
 {
     if (this.ModelState.IsValid)
     {
         this.service.DeleteService(bind.Id);
         return(this.RedirectToAction("All"));
     }
     return(this.View());
 }
Exemple #2
0
 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());
 }
Exemple #3
0
        public ActionResult Delete(int id)
        {
            KNGServiceVm deleteService = this.service.GetServiceBy(id);

            return(this.View(deleteService));
        }
Exemple #4
0
        public ActionResult Get(int id)
        {
            KNGServiceVm vm = this.service.GetServiceBy(id);

            return(this.View(vm));
        }