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)); }
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)); }