public async Task <ActionResult> Post(ExamReportCommand examReportCommand) { var userId = int.Parse(HttpContext.User.Claims.First()?.Value); var examReport = _mapper.Map <ExamReportCommand, ExamReport>(examReportCommand); examReport.MedicId = userId; var report = await _examReportService.SaveAsync <ExamReportValidator>(userId, examReport); var dto = _mapper.Map <ExamReport, ExamReportDTO>(report); return(Ok(dto)); }
public async void EuClicarEmEmitirLaudo() { _examReport = await _examReportService.SaveAsync <ExamReportValidator>(_resident.User.Id, _newExamReport); }