public void EditWork(EditWorkDto editWork) { var work = db.Works.Where(x => x.Id == editWork.Id).SingleOrDefault(); work.Title = editWork.Title; work.Description = editWork.Description; db.SaveChanges(); }
public void EditWorkAPI(EditWorkDto editWork) { var work = db.Works.Where(x => x.Id == editWork.Id).SingleOrDefault(); work.Title = editWork.Title; work.Description = editWork.Description; work.DeveloperId = "0c3d9737-6590-45d1-8cde-5dcd65369548"; work.SprintTaskId = 10; db.SaveChanges(); }
public IActionResult Edit(EditWorkDto editWorkDto) { workRepository.EditWork(editWorkDto); return(Redirect("GetAllWorks")); }
public IActionResult EditWork(EditWorkDto editWorkDto) { developerRepository.EditWork(editWorkDto); return(Redirect("ShowWorks")); }
public void Edit([FromBody] EditWorkDto editWork) { developerRepository.EditWorkAPI(editWork); }