public static string Sua(MayKhoanBoGoc khoanBoGoc) { var khoanBoGocLogic = new MayKhoanBoGocLogic(); var itemBDO = new MayKhoanBoGocBDO(); ChuyenDoiDTOThanhBDO(khoanBoGoc, itemBDO); return(khoanBoGocLogic.Sua(itemBDO)); }
public static string Them(MayKhoanBoGoc boiBiaCung) { var khoanBoGoclLogic = new MayKhoanBoGocLogic(); var itemBDO = new MayKhoanBoGocBDO(); ChuyenDoiDTOThanhBDO(boiBiaCung, itemBDO); return(khoanBoGoclLogic.Them(itemBDO)); }
public static MayKhoanBoGoc DocTheoId(int iD) { var khoanBoGocLogic = new MayKhoanBoGocLogic();; MayKhoanBoGoc dongCuon = new MayKhoanBoGoc(); try { var dongCuonBDO = khoanBoGocLogic.DocTheoId(iD); //Chuyen ChuyenDoiBDOThanhDTO(dongCuonBDO, dongCuon); } catch { } return(dongCuon); }
//Statics public static List <MayKhoanBoGoc> DocTatCa() { var khoanBoGocLogic = new MayKhoanBoGocLogic(); var nguon = khoanBoGocLogic.DocTatCa().Select(x => new MayKhoanBoGoc { ID = x.ID, Ten = x.Ten, DienGiai = x.DienGiai, TieuDe = x.TieuDe, BHR = x.BHR, TocDoBlockGio = x.TocDoBlockGio, PhiDungCuMoiBlock = x.PhiDungCuMoiBlock, ThoiGianChuanBi = x.ThoiGianChuanBi, DayLoiNhuan = x.DayLoiNhuan, DaySoLuong = x.DaySoLuong, Ma_01 = x.Ma_01, DaySoLuongNiemYet = x.DaySoLuongNiemYet, DonViTinh = x.DonViTinh, ThuTu = x.ThuTu }).OrderBy(x => x.ThuTu).ToList(); return(nguon); }