示例#1
0
        public IActionResult Edit1(string mdh)
        {
            var kt = _nhap.GetAll(IdCty()).Where(j => j.MaDonHang.Equals(mdh) && j.IsActive == true).ToList();

            var qlnx = _qlNx.GetNhap(IdCty(), mdh);

            //var kt1 = _nhap.GetAll(IdCty());
            if (qlnx != null)
            {
                var t = new QlNcc()
                {
                    MaDonHang = qlnx.MaDonHang,
                    DonGiaMua = qlnx.ThanhToan,
                    SoLuong   = (int)qlnx.ThanhTien
                };
                kt.Add(t);
            }
            return(Json(kt));
        }
示例#2
0
 public void Update(QlNcc entity)
 {
     _repository.Update(entity);
 }
示例#3
0
        public async Task <QlNcc> Create(QlNcc entity)
        {
            var check = await _repository.InsertAsync(entity);

            return(check);
        }