public bool Create(KHModel model) { string msgError = ""; try { var result = _dbHelper.ExecuteScalarSProcedureWithTransaction(out msgError, "sp_customer_create", "@customer_email", model.customer_email, "@customer_password", model.customer_password); 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 KHModel CreateItem([FromBody] KHModel model) { _customerBusiness.Create(model); return(model); }
public bool Create(KHModel model) { return(_res.Create(model)); }