Exemplo n.º 1
0
 public Result(Exception ex, ExceptionLocations location)
 {
     Errors = new List <string> {
         ex.Message
     };
     ErrorLocation = location.ToString();
 }
Exemplo n.º 2
0
 public Result(Exception ex, ExceptionLocations location, T entity)
 {
     Errors = new List <string> {
         ex.Message
     };
     Data          = entity;
     ErrorLocation = location.ToString();
 }