)         {             using (var ctx = DbContextManager<DatabaseContext>.GetManager())             {                 var context = ctx.DbContext;                 var scenario = context.Scenarios.Where(s => s.Id == obj.Id).FirstOrDefault();             