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)); }
public void Update(QlNcc entity) { _repository.Update(entity); }
public async Task <QlNcc> Create(QlNcc entity) { var check = await _repository.InsertAsync(entity); return(check); }