コード例 #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());
        }
コード例 #2
0
 public virtual void Visit(GetFormat node)
 {
 }
コード例 #3
0
 public void Visit(GetFormat node)
 {
 }