public void EditTask(ProjectTask task)
        {
            var original = projectTasksRepository.GetById(t => t.TaskId == task.TaskId);

            projectTasksRepository.Update(original, task.AutoMapObject <ProjectTask, DB.Task>());
        }
        public int CreateTask(ProjectTask projectTask)
        {
            var res = projectTasksRepository.Insert(projectTask.AutoMapObject <ProjectTask, DB.Task>());

            return(res.TaskId);
        }