예제 #1
0
        public virtual TModel GetAsModel(DbConnect con, TKey id)
        {
            TModel item = CrudRepo.GetAsModel(con, id);

            if (CrudRepo.Errors.Count > 0)
            {
                Errors.AddRange(CrudRepo.Errors);
                return(null);
            }
            return(item);
        }