Exemplo n.º 1
0
        public IHttpActionResult Get(DateTime date)
        {
            //if (Thread.CurrentPrincipal.IsInRole("Magazynier"))
            //{

            //}

            var loads = LoadsService.Get(date);

            if (loads == null || !loads.Any())
            {
                return(new CustomActionResult("Brak danych"));
            }


            return(Ok(loads));
        }
Exemplo n.º 2
0
        public IHttpActionResult Get()
        {
            var model = LoadService.Get(1);

            model.Items = ItemsService.Get(model.Id);

            // return new HtmlActionResult("<b>Hello</b>");

            return(new RazorActionResult("Dashboard", model));
        }