public ActionResult Edit(int projectId, int id, Base.Model.Task task) { try { if (User.Identity.IsAuthenticated) { ITaskLogic logic = container.Resolve <ITaskLogic>(); logic.HandleTaskEdit(task, projectId, id); return(Json(new JsonDataHandler(httpCode: HttpCodeEnum.Accepted, message: "Task successfully updated!").getInfo(), JsonRequestBehavior.AllowGet)); } return(Json(new JsonDataHandler(httpCode: HttpCodeEnum.Forbidden).getWarning(), JsonRequestBehavior.AllowGet)); } catch (Exception ex) { return(Json(new JsonDataHandler(ex).getError(), JsonRequestBehavior.AllowGet)); } }