                     context.SaveChanges();                 }             }         }          protected override void DataPortal_DeleteSelf()         {             using (var ctx = DbContextManager<DatabaseContext>.GetManager())             {                 var context = ctx.DbContext;                 var scenario = context.Scenarios.FirstOrDefault(s => s.Id == ScenarioID);                 var user = context.Users.FirstOrDefault(u => u.Id == UserID);                  if (scenario != null && user != null)                 {                     if (