public IHttpActionResult GetGuilds() { try { return(Ok(Repository.GetWithIncludes().Select(d => d.DTO))); } catch (NullReferenceException nre) { return(NotFound()); } catch (Exception e) { return(BadRequest(e.Message)); } }