public async Task <Result> AddReport([FromBody] ReportCreateModel model) { return(await _reportService.AddReportAsync(model)); }
public async Task <Result> AddReportAsync(ReportCreateModel model) { string appUserId = _userService.GetCurrentUserId(); return(await _mediator.Send(new AddReportCommand(_mapper.Map <ReportDTO>(model), appUserId))); }