Exemple #1
0
        public static void EditApplication(ApplicationDbContext context, CIMOBProject.Models.Application application)
        {
            var applicationToUpdate = context.Applications.Where(a => a.ApplicationId == application.ApplicationId).FirstOrDefault();

            applicationToUpdate.ApplicationStatId = application.ApplicationStatId;
            applicationToUpdate.ApplicationStat   = application.ApplicationStat;
            context.SaveChanges();
        }
Exemple #2
0
 public Application(Application application) {
     ApplicationId = application.ApplicationId;
     ApplicationStatId = application.ApplicationStatId;
 }