Пример #1
0
        /// <summary>
        /// Adds ToDoList record
        /// </summary>
        /// <param name="createToDoListDto">The create to do list dto.</param>
        /// <returns>
        /// added ToDoList record.
        /// </returns>
        public async Task <ToDoListDto> AddToDoList(CreateToDoListDto createToDoListDto)
        {
            if (createToDoListDto != null)
            {
                createToDoListDto.CreatedBy = _userId;
            }
            ToDoListDto addedItem = await _toDoListRepo.Add(createToDoListDto);

            return(addedItem);
        }
 /// <summary>
 /// Adds the specified to do list dto.
 /// </summary>
 /// <param name="toDoListDto">To do list dto.</param>
 /// <returns></returns>
 public async Task <ToDoListDto> Add(CreateToDoListDto toDoListDto)
 {
     return(await _toDoListRepository.Add(toDoListDto));
 }