public async Task <ActionResult> Rent(string isbns)
        {
            var isbnList = isbns.Split(',');
            var user     = await UserManager.FindByIdAsync(User.Identity.GetUserId());

            var result = await _facade.RentBooks(user.Ssn, isbnList);

            return(View(result));
        }
Esempio n. 2
0
 public async Task <RentAttemptModel> Rent(RentRequestModel model)
 {
     return(await _facade.RentBooks(model.Ssn, model.Isbns));
 }