// GET: Bills
        public ActionResult Fatura()
        {
            InvoiceVM Fatura = new InvoiceVM();

            UserDetail rentuser = _userDetailService.FindByUserName(HttpContext.User.Identity.Name);

            Fatura.Kiralayan = rentuser;

            Fatura.Kiralama = _rentService.GetByDefault(x => x.UserDetail.UserName == rentuser.UserName);

            var days = (int)Fatura.Kiralama.EndDate.Subtract(Fatura.Kiralama.StartDate).TotalDays + 1;

            Car rentalcar = _carService.GetById(Fatura.Kiralama.CarID);

            Bill newBill = new Bill();

            newBill.Date   = DateTime.Now;
            newBill.Cost   = days * rentalcar.CostPerDay;
            newBill.UserID = rentuser.Id;
            _billService.Add(newBill);

            Fatura.FaturaInfo   = newBill.Id;
            Fatura.KiralananGun = days;
            Fatura.Ucret        = newBill.Cost;
            Fatura.AracAdi      = rentalcar.CModel;
            return(View(Fatura));
        }