public async Task <ProjectTaskDTO> EditAsync([FromBody] ProjectTaskDTO model) { if (!TryValidateModel(model)) { throw new Exception("400"); } return(await _projectTaskService.EditAsync(model)); }