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