Example #1
0
 public async Task <Result> AddReport([FromBody] ReportCreateModel model)
 {
     return(await _reportService.AddReportAsync(model));
 }
Example #2
0
        public async Task <Result> AddReportAsync(ReportCreateModel model)
        {
            string appUserId = _userService.GetCurrentUserId();

            return(await _mediator.Send(new AddReportCommand(_mapper.Map <ReportDTO>(model), appUserId)));
        }