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)); }
public void Update(WhatIDo entity) { _whatidoDal.Update(entity); }
public void Delete(WhatIDo entity) { _whatidoDal.Delete(entity); }
public void Create(WhatIDo entity) { _whatidoDal.Create(entity); }