예제 #1
0
        public static bool Delete(Guid id)
        {
            Basic_Resource_DAL _Basic_Resource = new Basic_Resource_DAL();

            if (!_Basic_Resource.HasItem(id))
            {
                return(false);
            }
            return(_Basic_Resource.Delete(id));
        }
예제 #2
0
        public static bool Insert(Basic_Resource_Info info)
        {
            Basic_Resource_DAL _Basic_Resource = new Basic_Resource_DAL();

            if (info.Id == Guid.Empty)
            {
                return(false);
            }
            return(_Basic_Resource.Insert(info));
        }
예제 #3
0
        public static bool Update(Guid id, Dictionary <string, object> changes)
        {
            Basic_Resource_DAL _Basic_Resource = new Basic_Resource_DAL();

            if (!_Basic_Resource.HasItem(id))
            {
                return(false);
            }
            return(_Basic_Resource.Update(id, changes));
        }
예제 #4
0
        public static Basic_Resource_Info GetSingle(Guid id)
        {
            Basic_Resource_DAL _Basic_Resource = new Basic_Resource_DAL();

            if (!_Basic_Resource.HasItem(id))
            {
                return(null);
            }
            return(_Basic_Resource.GetSingle(id));
        }