/// <summary> /// /// </summary> /// <param name="entity"></param> /// <param name="connection"></param> /// <param name="transaction"></param> /// <returns></returns> public bool Create(UserEntity entity, DbConnection connection, DbTransaction transaction) { var error = UsersGateway.Insert(entity, connection, transaction); return(error == KandaTableDataGateway.NO_ERRORS); }
/// <summary> /// /// </summary> /// <param name="entity"></param> /// <param name="connection"></param> /// <param name="transaction"></param> /// <returns></returns> public bool Create(UserEntity entity, DbConnection connection, DbTransaction transaction) { var created = UsersGateway.Insert(entity, connection, transaction); return(created == 1); }