Esempio n. 1
0
        /// <summary>
        /// Adds Label record
        /// </summary>
        /// <param name="createLabelDto">The create label dto.</param>
        /// <returns>
        /// added ToDoList record.
        /// </returns>
        public async Task <LabelDto> AddLabel(CreateLabelDto createLabelDto)
        {
            if (createLabelDto != null)
            {
                createLabelDto.CreatedBy = _userId;
            }
            LabelDto addedItem = await _labelRepo.Add(createLabelDto);

            return(addedItem);
        }
Esempio n. 2
0
 /// <summary>
 /// Adds the specified label dto.
 /// </summary>
 /// <param name="labelDto">The label dto.</param>
 /// <returns></returns>
 public async Task <LabelDto> Add(CreateLabelDto labelDto)
 {
     return(await _labelRepository.Add(labelDto));
 }