Ejemplo n.º 1
0
        public CustomerUnitModel PrepareCustomerUnitModel(CustomerUnitModel model, CustomerUnitMapping item, bool excludeProperties = false)
        {
            if (item != null)
            {
                //fill in model values from the entity
                model = model ?? item.ToModel <CustomerUnitModel>();
            }

            return(model);
        }
Ejemplo n.º 2
0
 public bool insertCustomerUnit(int UnitId, int CustomerId)
 {
     try
     {
         CustomerUnitMapping item = new CustomerUnitMapping();
         item.UnitId     = UnitId;
         item.CustomerId = CustomerId;
         _itemCustomerUnitRepository.Insert(item);
         return(true);
     }
     catch
     {
         return(false);
     }
 }