예제 #1
0
 public IActionResult EditWhatIDo(WhatIDo entity)
 {
     if (ModelState.IsValid)
     {
         _whatIDoService.Update(entity);
         TempData.Put("message", new ResultMessage()
         {
             Title   = "Bildirim",
             Message = "What I Do başarılı bir şekilde güncellendi.",
             Css     = "success"
         });
         return(RedirectToAction("WhatIDo"));
     }
     return(View(entity));
 }
예제 #2
0
 public void Update(WhatIDo entity)
 {
     _whatidoDal.Update(entity);
 }
예제 #3
0
 public void Delete(WhatIDo entity)
 {
     _whatidoDal.Delete(entity);
 }
예제 #4
0
 public void Create(WhatIDo entity)
 {
     _whatidoDal.Create(entity);
 }