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")); }
public async Task <BorrowDto> Get(Guid id) => await _borrowService.Get(id);