public BaseResponse <TaskLabelOutputDto> Create(TaskLabelInputDto taskLabelInputDto) { var entity = Create(Mapper.Map <TaskLabel>(taskLabelInputDto), out var isSaved); if (!isSaved) { throw new InternalServerErrorException("Could not add task label"); } return(new SuccessResponse <TaskLabelOutputDto>(Mapper.Map <TaskLabelOutputDto>(entity))); }
public BaseResponse <TaskLabelOutputDto> Create([FromBody] TaskLabelInputDto taskLabelInputDto) { return(_taskLabelService.Create(taskLabelInputDto)); }