//Chuyển đổi private static void ChuyenDoiBDOThanhDTO(ToBoiBiaCungBDO toBoiBiaCungBDO, ToBoiBiaCung toBoiBiaCung) { toBoiBiaCung.ID = toBoiBiaCungBDO.ID; toBoiBiaCung.Ten = toBoiBiaCungBDO.Ten; toBoiBiaCung.DoDayCm = toBoiBiaCungBDO.DoDayCm; toBoiBiaCung.GiaMuaTo = toBoiBiaCungBDO.GiaMuaTo; toBoiBiaCung.ThuTu = toBoiBiaCungBDO.ThuTu; }
public static string Sua(ToBoiBiaCung item) { var toLotLogic = new ToBoiBiaCungLogic(); var itemBDO = new ToBoiBiaCungBDO(); ChuyenDoiItemDTOThanhBDO(item, itemBDO); return(toLotLogic.Sua(itemBDO)); }
public GiaBoiBiaCung(int soLuongTam, BoiBiaCung boiBiaCung, float tamRong, float tamCao, ToBoiBiaCung toBoi, int soToBoiTrenMoiBia, int tyLeMarkUpSales) { this.SoLuong = soLuongTam; this.TamRong = tamRong; this.TamCao = tamCao; this.MayBoiBiaCung = boiBiaCung; this.ToBoi = toBoi; this.SoToBoiMoiBia = soToBoiTrenMoiBia; this.TyLeMarkUp = tyLeMarkUpSales; }
public static ToBoiBiaCung DocTheoId(int idKhuonEpKim) { var toBoiBCLogic = new ToBoiBiaCungLogic(); var toBoiBC = new ToBoiBiaCung(); try { var khuonEpKimBDO = toBoiBCLogic.DocTheoId(idKhuonEpKim); //Chuyen ChuyenDoiBDOThanhDTO(khuonEpKimBDO, toBoiBC); } catch { } return(toBoiBC); }