Ejemplo n.º 1
0
 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));
     }
 }