示例#1
0
        public static Return DeletePermanently(MediaTypeRole obj)
        {
            var permissions = obj.MediaTypeRolesPermissions;

            foreach (var p in permissions)
            {
                GetDataModel().MediaTypeRolesPermissions.Remove(p);
            }

            return(Delete(MapperKey, obj));
        }
示例#2
0
 public static Return Update(MediaTypeRole obj)
 {
     obj.DateLastModified = DateTime.Now;
     return(Update(MapperKey, obj));
 }
示例#3
0
 public static Return Insert(MediaTypeRole obj)
 {
     obj.DateCreated = obj.DateLastModified = DateTime.Now;
     return(Insert(MapperKey, obj));
 }