public CustomerView(Customer model)
        {
            Mapper.CreateMap<Customer, CustomerView>();
            Mapper.Map<Customer, CustomerView>(model, this);

            this.created = model.created.ToString().Replace('T', ' ');
            this.updated = model.updated.ToString().Replace('T', ' ');
            this.type = model.GetType().BaseType.Name;
        }
        public Customer getModel()
        {
            var model = new Customer();

            Mapper.CreateMap<CustomerView, Customer>();
            Mapper.Map<CustomerView, Customer>(this, model);

            return model;
        }