public bool Update(GVCNModel model) { string msgError = ""; try { var result = _dbHelper.ExecuteScalarSProcedureWithTransaction(out msgError, "sp_GVCN_update", "@magv", model.magv, "@tengv", model.tengv, "@gioitinh", model.gioitinh, "@ngaysinh", model.ngaysinh, "@quequan", model.quequan, "@malop", model.malop, "@namcn", model.namcn, "@sdt", model.sdt, "@avata", model.avata, "@trangthai", model.trangthai, "@ngaysua", model.ngaysua, "@ngaytao", model.ngaytao); 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(GVCNModel model) { return(_res.Update(model)); }
public bool Create(GVCNModel model) { return(_res.Create(model)); }
public GVCNModel UpdateGVCN([FromBody] GVCNModel model) { _GVCNBusiness.Update(model); return(model); }