public ActionResult Return(int id)
        {
            Borrow b  = bservice.Get(id);
            Book   bk = bkservice.Get(b.Book);

            bk.Copy = bk.Copy + 1;
            bkservice.Update(bk);
            b.Status = 1;
            b.Rdate  = DateTime.Now;
            bservice.Update(b);
            return(RedirectToAction("Borrowdetails"));
        }
예제 #2
0
 public async Task <BorrowDto> Get(Guid id) => await _borrowService.Get(id);