public ActionResult <IEnumerable <CatGetDto> > Get() { // TODO: Return a CatResponse return(Ok(_service.GetAll())); //(service as CatService).GetAllExt() }
public ActionResult Index() { /*if (Session["AdminEmail"] == null) * { * return RedirectToAction("Login", "Admin"); * }*/ List <Cat> cats = catService.GetAll().ToList(); return(View(cats)); }
public ActionResult <List <ResponseModel> > Get() { return(Ok(_catService.GetAll())); }
public ActionResult Cats() { List <Cat> cats = catService.GetAll().ToList(); return(View(cats)); }