/// <summary> /// Creates an item UnitWeight /// </summary> /// <param name="unitEnt">Convertible item UnitWeightEnt</param> /// <returns>UnitWeight</returns> public static UnitWeight NewUnitWeight(UnitWeightEnt unitEnt) { UnitWeight unitWeight = new UnitWeight(); unitWeight.Id = unitEnt.Id; unitWeight.Units = unitEnt.Unit; return(unitWeight); }
void AddUnitWeight(string units) { UnitWeightEnt unites = new UnitWeightEnt(units); Unit.UnitsWeightRepository.AddItem(unites); }
/// <summary> /// Creates an item UnitWeightEnt /// </summary> /// <param name="unit">Convertible item UnitWeight</param> /// <returns>UnitWeightEnt</returns> public static UnitWeightEnt NewUnitWeightEnt(UnitWeight unit) { UnitWeightEnt unitWeightEnt = new UnitWeightEnt(unit.Units); return(unitWeightEnt); }
public UnitWeight(UnitWeightEnt unit) { Id = unit.Id; Units = unit.Unit; }