public ActionResult EditProject(Project model) { if (ModelState.IsValid) { projectLogic.EditProject(model.Id, model.Name, model.Priority); } return(RedirectToAction("Index", "Project")); }
public bool EditProject(ProjectRequest request) { try { return(_projectLogic.EditProject(request.Id, request.Name, request.DeadLine, request.EffortInHours, request.EffortInCurrency, request.CurrencyId, request.TeamId, request.StatusId, request.ClientId)); } catch (Exception e) { throw new FaultException("Not successful change"); } }