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));
        }
Example #3
0
 // GET: api/Priorities
 public List <Priority> GetPriorities()
 {
     return(_repository.GetAll());
 }