public ActionResult MyBooks() { var mail = (string)Session["Mail"]; var user = memberService.GetByMail(mail); var value = bookRecordService.GetMembersBook(user.Id); return(View(value)); }
public ActionResult MembersBooks(int id) { var value = _bookRecordManager.GetMembersBook(id); var membername = _memberManager.GetById(id).Name; var memberlastname = _memberManager.GetById(id).LastName; ViewBag.dgr1 = membername; ViewBag.dgr2 = memberlastname; return(View(value)); }