Пример #1
0
        public ActionResult <IEnumerable <CatGetDto> > Get()
        {
            // TODO: Return a CatResponse

            return(Ok(_service.GetAll()));

            //(service as CatService).GetAllExt()
        }
Пример #2
0
        public ActionResult Index()
        {
            /*if (Session["AdminEmail"] == null)
             * {
             *  return RedirectToAction("Login", "Admin");
             * }*/
            List <Cat> cats = catService.GetAll().ToList();

            return(View(cats));
        }
Пример #3
0
 public ActionResult <List <ResponseModel> > Get()
 {
     return(Ok(_catService.GetAll()));
 }
Пример #4
0
        public ActionResult Cats()
        {
            List <Cat> cats = catService.GetAll().ToList();

            return(View(cats));
        }