public static Return DeletePermanently(MediaTypeRole obj) { var permissions = obj.MediaTypeRolesPermissions; foreach (var p in permissions) { GetDataModel().MediaTypeRolesPermissions.Remove(p); } return(Delete(MapperKey, obj)); }
public static Return Update(MediaTypeRole obj) { obj.DateLastModified = DateTime.Now; return(Update(MapperKey, obj)); }
public static Return Insert(MediaTypeRole obj) { obj.DateCreated = obj.DateLastModified = DateTime.Now; return(Insert(MapperKey, obj)); }