public IActionResult Index() { var priorities = _priority.GetAll(); if (priorities != null) { return(View(priorities)); } else { return(View()); } }
public IActionResult Index() { var priorities = _priority.GetAll(); return(View(priorities)); }
// GET: api/Priorities public List <Priority> GetPriorities() { return(_repository.GetAll()); }