public bool Create(NhasanxuatModel model) { string msgError = ""; try { var result = _dbHelper.ExecuteScalarSProcedureWithTransaction(out msgError, "nsx_item_create", "@manhasanxuat", model.manhasanxuat, "@tennhasanxuat", model.tennhasanxuat, "@logo", model.logo, "@sdtnhasanxuat", model.sdtnhasanxuat); 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 Create(NhasanxuatModel model) { return(_res.Create(model)); }
public bool Update(NhasanxuatModel model) { return(_res.Update(model)); }
public NhasanxuatModel Update([FromBody] NhasanxuatModel model) { _itemBusiness.Update(model); return(model); }
public NhasanxuatModel CreateItem([FromBody] NhasanxuatModel model) { _itemBusiness.Create(model); return(model); }