public ActionResult Borrowing(string subjectId, DateTimeOffset returnDate, string name) { try { BorrowingService.BorrowSubject(subjectId, returnDate, name); return(RedirectToAction("index", "Home", new { area = "" })); } catch (Exception ex) { return(View("Error", new HandleErrorInfo(ex, "Borrowing", "Borrowing"))); } }