Exemplo n.º 1
0
        public IHttpActionResult GetAll()
        {
            if (IsTokenValid() && authenticationService.IsAllowedToGetFormats(GetTokenUserEmail()))
            {
                try
                {
                    return(Ok(GetFormat.ToModel(formatManagementService.GetAll())));
                }
                catch (Exceptions e)
                {
                    return(BadRequest(e.Message));
                }
            }

            return(Unauthorized());
        }
Exemplo n.º 2
0
 public virtual void Visit(GetFormat node)
 {
 }
Exemplo n.º 3
0
 public void Visit(GetFormat node)
 {
 }