Пример #1
0
        public ActionResult GetBorrowsInBook(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            var borrows = borrowService.GetBorrowsInBook(id);

            return(Json(borrows, JsonRequestBehavior.AllowGet));
        }