public IHttpActionResult Get([FromUri] Guid id)
 {
     try
     {
         Utils.IsAValidToken(Request, AuthorizationBusinessLogic);
         Utils.HasAdminPermissions(Request, AuthorizationBusinessLogic);
         Format format = FormatBusinessLogic.Get(id);
         return(Ok(FormatModel.ToModel(format)));
     }
     catch (Exception e)
     {
         return(BadRequest(e.Message));
     }
 }
 public IHttpActionResult Get()
 {
     try
     {
         Utils.IsAValidToken(Request, AuthorizationBusinessLogic);
         Utils.HasAdminPermissions(Request, AuthorizationBusinessLogic);
         IList <Format>      formats       = FormatBusinessLogic.Get();
         IList <FormatModel> formatsModels = Utils.ConvertEntitiesToModels(formats);
         return(Ok(formatsModels));
     }
     catch (Exception e)
     {
         return(BadRequest(e.Message));
     }
 }