private void gridNXB_SelectedItemChanged(object sender, DevExpress.Xpf.Grid.SelectedItemChangedEventArgs e) { try { NhaXuatBanModel select = gridNXB.SelectedItem as NhaXuatBanModel; NhaXB nxb = nxbControll.GetById(select.MaNXB); _txtmanxb.Text = nxb.MaNXB; _txttennxb.Text = nxb.TenNhaXB; } catch { } }
public bool Create(NhaXuatBanModel model) { string msgError = ""; try { var result = _dbHelper.ExecuteScalarSProcedureWithTransaction(out msgError, "sp_nxb_create", "@tennxb", model.tennxb, "@diachi", model.diachi, "@dienthoai", model.dienthoai); if ((result != null && !string.IsNullOrEmpty(result.ToString())) || !string.IsNullOrEmpty(msgError)) { throw new Exception(Convert.ToString(result) + msgError); } return(true); } catch (Exception ex) { throw ex; } }
public bool Update(NhaXuatBanModel model) { return(_res.Update(model)); }
public bool Create(NhaXuatBanModel model) { return(_res.Create(model)); }
public List <NhaXuatBanModel> GetListTableModelBySearch(string search) { return(NhaXuatBanModel.ToListByListNXB(_NhaXuatBanControls.GetBySearch(search))); }
public NhaXuatBanModel UpdateNXB([FromBody] NhaXuatBanModel model) { _NhaXuatBanBusiness.Update(model); return(model); }