public ActionResult GetCurrentUserBorrow(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } var model = borrowService.GetCurrentUserBorrows(id); return(Json(model, JsonRequestBehavior.AllowGet)); }
public ActionResult GetCurrentUserBorrow(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } var model = borrowService.GetCurrentUserBorrows(id); return(Json(model, JsonRequestBehavior.AllowGet)); }