Exemple #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));
        }
Exemple #2
0
 public static Return Update(MediaTypeRole obj)
 {
     obj.DateLastModified = DateTime.Now;
     return(Update(MapperKey, obj));
 }
Exemple #3
0
 public static Return Insert(MediaTypeRole obj)
 {
     obj.DateCreated = obj.DateLastModified = DateTime.Now;
     return(Insert(MapperKey, obj));
 }