Пример #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);
        }