Exemplo n.º 1
0
 public ApiResult <string> CreateRequest(ReportRequest reportRequest)
 {
     return(Execute(() =>
     {
         var result = Guid.NewGuid();
         reportRequest.UniqueId = result;
         _reportsRepository.CreateRequest(Mapper.Map <Data.Models.ReportRequest>(reportRequest));
         return result.ToString();
     }));
 }