Пример #1
0
 public IHttpActionResult GetGuilds()
 {
     try
     {
         return(Ok(Repository.GetWithIncludes().Select(d => d.DTO)));
     }
     catch (NullReferenceException nre)
     {
         return(NotFound());
     }
     catch (Exception e)
     {
         return(BadRequest(e.Message));
     }
 }