Пример #1
0
        public int Create(string name, int id)
        {
            var         map      = mapper.CreateMapper();
            BoardDTO    board    = BoardService.Get(id);
            TaskListDTO taskList = new TaskListDTO {
                Name = name, BoardId = board.Id
            };
            int i = taskList.Id = TaskListService.Create(taskList);

            return(i);
        }
Пример #2
0
 public TaskList Post([FromBody] TaskList taskList)
 {
     return(_taskListService.Create(taskList));
 }