public IHttpActionResult GetAll() { if (IsTokenValid() && authenticationService.IsAllowedToGetFormats(GetTokenUserEmail())) { try { return(Ok(GetFormat.ToModel(formatManagementService.GetAll()))); } catch (Exceptions e) { return(BadRequest(e.Message)); } } return(Unauthorized()); }
public virtual void Visit(GetFormat node) { }
public void Visit(GetFormat node) { }