예제 #1
0
        public static bll.Supplier ToBLL(this dto.Supplier dto)
        {
            bll.Supplier bll = new bll.Supplier(dto.AddressId);

            bll.Id          = dto.Id;
            bll.Name        = dto.Name;
            bll.Description = dto.Description;
            bll.CreateDate  = dto.CreateDate;
            bll.CreateBy    = dto.CreateBy;

            return(bll);
        }
예제 #2
0
        public static dto.Supplier ToDTO(this bll.Supplier bll)
        {
            dto.Supplier dto = new dto.Supplier();

            dto.Id          = bll.Id;
            dto.Name        = bll.Name;
            dto.Description = bll.Description;
            dto.CreateDate  = bll.CreateDate;
            dto.CreateBy    = bll.CreateBy;
            dto.AddressId   = bll.Address.Id;

            return(dto);
        }