public ActionResult ReturnLibraryItem(int id, string method, string contr) { ViewBag.method = method; ViewBag.contr = contr; ViewBag.id = id; _libraryItemService.ReturnLibraryItem(id); return(RedirectToAction(method, contr)); }
//resets the item to available if a book gets returned to the library public ActionResult ReturnLibraryItem(int id) { _libraryItemService.ReturnLibraryItem(id); return(RedirectToAction("GetLoanedLibraryItems")); }