public CompanyCustomerView(CompanyCustomer model) { Mapper.CreateMap <CompanyCustomer, CompanyCustomerView>(); Mapper.Map <CompanyCustomer, CompanyCustomerView>(model, this); this.created = model.created.ToString().Replace('T', ' '); this.updated = model.updated.ToString().Replace('T', ' '); }
public CompanyCustomerView(CompanyCustomer model) { Mapper.CreateMap<CompanyCustomer, CompanyCustomerView>(); Mapper.Map<CompanyCustomer, CompanyCustomerView>(model, this); this.created = model.created.ToString().Replace('T', ' '); this.updated = model.updated.ToString().Replace('T', ' '); }
public CompanyCustomer getModel() { var model = new CompanyCustomer(); Mapper.CreateMap <CompanyCustomerView, CompanyCustomer>(); Mapper.Map <CompanyCustomerView, CompanyCustomer>(this, model); return(model); }
public CompanyCustomer getModel() { var model = new CompanyCustomer(); Mapper.CreateMap<CompanyCustomerView, CompanyCustomer>(); Mapper.Map<CompanyCustomerView, CompanyCustomer>(this, model); return model; }
public CompanyCustomer createCompanyCustomer(CompanyCustomer model) { db.companyCustomers.Add(model); db.SaveChanges(); return model; }