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

            return(addedItem);
        }
Esempio n. 2
0
 /// <summary>
 /// adds label record to label table.
 /// </summary>
 /// <param name="createLabelDto"></param>
 /// <returns> Added Label record. </returns>
 public async Task <LabelDto> AddLabel(CreateLabelDto createLabelDto)
 {
     return(await _labelDbOps.AddLabel(createLabelDto));
 }