public List <UnitOfMeasureModel> GetLengthUnitsOfMeasure()
        {
            List <UnitOfMeasureModel> data = new List <UnitOfMeasureModel>();

            using (TPO.DL.Repositories.ReferenceDataRepository repo = new DL.Repositories.ReferenceDataRepository())
            {
                List <TPO.DL.Models.UnitOfMeasure> entities = repo.GetLengthUnitsOfMeasure().ToList();
                for (int i = 0; i < entities.Count; i++)
                {
                    data.Add(Bind(entities[i], new UnitOfMeasureModel()));
                }
            }
            return(data);
        }
        public UnitOfMeasureModel GetUnitOfMeasureByID(int id)
        {
            UnitOfMeasureModel model = null;

            using (TPO.DL.Repositories.ReferenceDataRepository repo = new DL.Repositories.ReferenceDataRepository())
            {
                var entity = repo.GetUnitOfMeasureByID(id);
                if (entity != null)
                {
                    model = Bind(entity, new UnitOfMeasureModel());
                }
            }
            return(model);
        }