/// <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); }
/// <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)); }