public ActionResult UsersByProjectTask(int projectId, int taskId) { try { if (User.Identity.IsAuthenticated) { ITaskLogic logic = container.Resolve <ITaskLogic>(); IEnumerable <string> usersIds = logic.GetTaskUsers(projectId, taskId); UsersViewModel users = getUsersQueryHelper(usersIds); return(Json(users, JsonRequestBehavior.AllowGet)); } return(Json(new JsonDataHandler(httpCode: HttpCodeEnum.Forbidden).getWarning(), JsonRequestBehavior.AllowGet)); } catch (Exception ex) { return(Json(new JsonDataHandler(ex).getError(), JsonRequestBehavior.AllowGet)); } }