public ActionResult AddThucTeChiTiet(CoCauThucTeChiTietItem item) { COCAUGIA_THUCTE thucte = _NhapCoCauGiaThucTeProvider._CoCauGiaThucTe.GetCoCauThucTeByID(Convert.ToInt64(Session["idThucTe"])); COCAUGIA_LOAI loai = _NhapCoCauGiaThucTeProvider._CoCauGiaLoai.GetCoCauGiaLoaiByID(item.IDLoai); COCAUGIA_THUCTE_CT thucte_ct = new COCAUGIA_THUCTE_CT { THUCTE = thucte, LOAI = loai, MA_COCAU = item.MaCoCau, TEN_COCAU_OLD = item.TenCoCauOld, DONGIA_OLD = item.DonGiaOld, SO_LUONG_OLD = item.SoLuongOld, TEN_COCAU_NEW = item.TenCoCauNew, DONGIA_NEW = item.DonGiaNew, SO_LUONG_NEW = item.SoLuongNew }; _NhapCoCauGiaThucTeProvider._CoCauGiaThucTeChiTiet.AddCoCauThucTeChiTiet(thucte_ct); return(GridViewThucTeChiTietByIDThucTe(Convert.ToInt64(Session["idThucTe"]))); }
public COCAUGIA_LOAI GetCoCauGiaLoaiByID(long id) { COCAUGIA_LOAI loai = _ICOCAUGIA_LOAIService.getById(id).FirstOrDefault(); return(loai); }