public async Task <IActionResult> Post([FromBody] TaskStatusModel model) { try { var task = await _taskStatusService.CreateAsync(_mapper.Map <TaskStatusDto>(model)); return(Ok(_mapper.Map <TaskStatusModel>(task))); } catch (ArgumentException ex) { return(BadRequest(ex.Message)); } catch (Exception ex) { return(StatusCode(500, ex.Message)); } }