Exemplo n.º 1
0
 public ActionResult <IList <UUID.Output.IdOutput> > GetList(string uuid, int module, int version)
 {
     try
     {
         return(UUIDService.getByUUID(uuid, version).FindAll(e => e.module.Equals(module)));
     }
     catch (Exception e)
     {
         ControlRoom.SendErrorMessage("UUID API failed", String.Format("Message: {0}, UUID: {1}, Module: {2}, Version: {3}", e.Message, uuid, module, version));
         return(StatusCode(500, e.Message));
     }
 }
Exemplo n.º 2
0
 public ActionResult <IList <UUID.Output.IdOutput> > Get(string uuid)
 {
     try
     {
         return(UUIDService.getByUUID(uuid, ""));
     }
     catch (Exception e)
     {
         ControlRoom.SendErrorMessage("UUID API failed", String.Format("Message: {0}, UUID: {1}", e.Message, uuid));
         return(StatusCode(500, e.Message));
     }
 }