public Task(string description, ETaskPriority taskPriority, DateTime startDate, DateTime endDate) { Description = description; TaskPriority = taskPriority; StartDate = startDate; EndDate = endDate; }
public CommonTaskDto(int taskId, string description, ETaskPriority taskPriority, DateTime endDate, double time) { TaskId = taskId; Description = description; TaskPriority = taskPriority; EndDate = endDate; Time = time; }
public Task <Task> CreateAsync(string description, ETaskPriority taskPriority, DateTime startDate, DateTime endDate) { return(System.Threading.Tasks.Task.Factory.StartNew(() => new Task(description, taskPriority, startDate, endDate))); }