예제 #1
0
 public ActionResult EditProject(Project model)
 {
     if (ModelState.IsValid)
     {
         projectLogic.EditProject(model.Id, model.Name, model.Priority);
     }
     return(RedirectToAction("Index", "Project"));
 }
예제 #2
0
 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");
     }
 }