示例#1
0
 public async Task <JsonResult> GetCustomers(int countPerPage, int currPage)
 {
     return(Json(new {
         Users = await YummyOnlineManager.GetUsers(Role.Customer, countPerPage, currPage, true),
         Count = await YummyOnlineManager.GetUserCount(Role.Customer)
     }));
 }
示例#2
0
 public async Task <JsonResult> GetAdmins()
 {
     return(Json(await YummyOnlineManager.GetUsers(Role.Admin)));
 }