public IHttpActionResult GetGuild(string id) { try { Guild guild = Repository.GetByID(id); return(Ok(guild.DTO)); } catch (NullReferenceException nre) { return(NotFound()); } catch (Exception e) { return(BadRequest(e.Message)); } }