Ejemplo n.º 1
0
        public ActionResult Renting(Rent model)
        {
            model.Billed   = true;
            model.Returned = false;
            model.Paid     = true;
            UserDetail kullanici = _userDetailService.FindByUserName(HttpContext.User.Identity.Name);

            model.UserID = kullanici.Id;
            _rentService.Add(model);
            return(RedirectToAction("Fatura", "Invoice", new { area = "" }));
        }