예제 #1
0
        public F41010Model GetDataByItemNo2nd(string ItemNo2nd)
        {
            Mapper.CreateMap<F41010, F41010Model>();

            objF41010 = new F41010Repository();

            F41010 objEntity = objF41010.GetSingle(i => i.ItemNo2nd.Equals(ItemNo2nd));

            F41010Model resultModel = new F41010Model();

            resultModel = Mapper.Map(objEntity, resultModel);

            return resultModel;
        }
예제 #2
0
        public F41010Model GetDataByShortItemNo(int shortItemNo)
        {
            Mapper.CreateMap<F41010, F41010Model>();

            objF41010 = new F41010Repository();

            F41010 objEntity = objF41010.GetSingle(i=>i.ShortItemNo.Equals(shortItemNo));

            F41010Model resultModel = new F41010Model();

            resultModel = Mapper.Map(objEntity, resultModel);

            return resultModel;
        }