/// <summary> /// Add a new task. /// </summary> /// <param name="email">Email of the user. The user must be logged in.</param> /// <param name="title">Title of the new task</param> /// <param name="description">Description of the new task</param> /// <param name="dueDate">The due date if the new task</param> /// <returns>A response object with a value set to the Task, instead the response should contain a error message in case of an error</returns> public Response <Task> AddTask(string email, string title, string description, DateTime dueDate) { Response rs = us.validateLoggedIn(email); if (rs.ErrorOccured) { return(new Response <Task>(rs.ErrorMessage)); } return(bs.AddTask(email, title, description, dueDate)); }
/// <summary> /// Add a new task. /// </summary> /// <param name="email">Email of the user. The user must be logged in.</param> /// <param name="title">Title of the new task</param> /// <param name="description">Description of the new task</param> /// <param name="dueDate">The due date if the new task</param> /// <returns>A response object with a value set to the Task, instead the response should contain a error message in case of an error</returns> public Response <Task> AddTask(string email, string title, string description, DateTime dueDate) { return(bService.AddTask(email, title, description, dueDate)); }
/// <summary> /// Add a new task. /// </summary> /// <param name="email">Email of the user. The user must be logged in.</param> /// <param name="title">Title of the new task</param> /// <param name="description">Description of the new task</param> /// <param name="dueDate">The due date if the new task</param> /// <returns>A response object with a value set to the Task, instead the response should contain a error message in case of an error</returns> public Response <Task> AddTask(string email, string title, string description, DateTime dueDate) { return(boardService.AddTask(userService.UserC.GetId(email), title, description, dueDate, userService.UserC.currentId(), userService.UserC)); }