Example #1
0
 public ActionResult <IEnumerable <Account> > Get()
 {
     return(Ok(_accountService.GetAccounts()));
 }
 public async Task <IActionResult> GetAccounts()
 {
     return(Ok(await accountServices.GetAccounts()));
 }
Example #3
0
 public ActionResult <IEnumerable <Account> > Get() => Ok(_accountServices.GetAccounts());
        public IActionResult Index()
        {
            var _results = accountServices.GetAccounts(0, 40, "FirstName", "asc");

            return(View(_results));
        }
Example #5
0
        public List <AccountModel> GetAccounts()
        {
            var accounts = _accountServices.GetAccounts();

            return(accounts.Select(_ => _.AccountToModel()).ToList());
        }