//Satış açmak için kullanılacak
        public ActionResult OpenSale()
        {
            var Musteriler = _serviceCustomers.GetAll().Select(x => new SelectListItem {
                Text = x.Name + " " + x.Surname, Value = x.Id.ToString()
            }).ToList();
            var Personeller = _serviceEmployees.GetAll().Select(x => new SelectListItem {
                Text = x.Name + " " + x.Surname, Value = x.Id.ToString()
            }).ToList();

            ViewBag.Musteriler  = Musteriler;
            ViewBag.Personeller = Personeller;

            return(View());
        }
        public ActionResult CustomerList()
        {
            List <CustomersModel> CustomersModelList = new List <CustomersModel>();

            foreach (var item in _serviceCustomers.GetAll())
            {
                CustomersModelList.Add(new CustomersModel()
                {
                    Description          = item.Description,
                    Name                 = item.Name,
                    BloodGroup           = item.BloodGroup,
                    DateOfBirth          = item.DateOfBirth,
                    EmailAddress         = item.EmailAddress,
                    IdentificationNumber = item.IdentificationNumber,
                    Address              = item.Address,
                    IsMale               = item.IsMale,
                    IsMarried            = item.IsMale,
                    NationalityId        = item.NationalityId,
                    PhoneNumber          = item.PhoneNumber,
                    Surname              = item.Surname,
                    Nationality          = item.Nationality,
                    Sales                = item.Sales,
                    StayingInRoom        = item.StayingInRoom,
                    Id = item.Id
                });
            }
            return(View(CustomersModelList));
        }