예제 #1
0
        public async Task <JsonResult> GetSelectListItems()
        {
            var conditions = new QueryConditions();

            conditions.AddPublicCondition("IsActive", "IsActive=1");
            conditions.AddPublicCondition("IsDeleted", "IsDeleted=0");
            var model = await _repository.GetSelectListItems(conditions);

            return(Json(model));
        }
예제 #2
0
        public async Task <T> FindAsync(int id, SqlTransaction transaction = null)
        {
            using (var connection = _connectionService.Create())
            {
                var conditions = new QueryConditions();
                conditions.AddPublicCondition("IsDeleted", "IsDeleted = 0");
                var model = await _databaseActions.Find <T>(connection, id, conditions, transaction);

                return(model);
            }
        }