public JsonResponse RetrieveTaskByProjectId(int projectId) { if (projectId < 0) { throw new ArithmeticException("ProjectId cannot be negative"); } List <Task> Tasks = taskObj.GetTaskByProjectId(projectId); return(new JsonResponse() { Data = Tasks }); }