public bool Create(TextlevelModel model) { string msgError = ""; try { var result = _dbHelper.ExecuteScalarSProcedureWithTransaction(out msgError, "textlevel_item_create", "@textlevelid", model.textlevelid, "@textLevelName", model.textLevelName, "@textLeveldescription", model.textLeveldescription, "@isDeleted", model.isDeleted); 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 TextlevelModel UpdateTextlevel([FromBody] TextlevelModel model) { _itemBusiness.Update(model); return(model); }
public TextlevelModel CreateItem([FromBody] TextlevelModel model) { _itemBusiness.Create(model); return(model); }
public bool Create(TextlevelModel model) { return(_res.Create(model)); }
public bool Update(TextlevelModel model) { return(_res.Update(model)); }