public ActionResult Edit(CustomerModel customerModel)
        {
            CustomerManager customerMgr = new CustomerManager();
            customerMgr.SaveCustomerDetails(customerModel);

            return RedirectToAction("Index");
        }
        public void SaveCustomerDetails(CustomerModel customerModelDetails)
        {
            CustomerRepository customerRepository = new CustomerRepository();
            CustomerDTO customerEntity = new CustomerDTO();

            AutoMapper.Mapper.Map(customerModelDetails, customerEntity);
            customerRepository.SaveCustomerDetails(customerEntity);
        }
        public CustomerModel GetCustomerById(int customerId)
        {
            CustomerRepository customerRepository = new CustomerRepository();
            CustomerModel customerModelDetails = new CustomerModel();

            AutoMapper.Mapper.Map(customerRepository.GetCustomerById(customerId), customerModelDetails);
            return customerModelDetails;
        }