Пример #1
0
        public SuUserOrganizationTypeLanguageModel UpdateUserOrganizationTypeLanguage(SuUserOrganizationTypeLanguageModel suUserOrganizationTypeLanguageChanges)
        {
            var suUserOrganizationTypeLanguage = context.DbUserOrganizationTypeLanguage.Attach(suUserOrganizationTypeLanguageChanges);

            suUserOrganizationTypeLanguage.State = Microsoft.EntityFrameworkCore.EntityState.Modified;
            context.SaveChanges();
            return(suUserOrganizationTypeLanguageChanges);
        }
Пример #2
0
 public SuUserOrganizationTypeLanguageModel AddUserOrganizationTypeLanguage(SuUserOrganizationTypeLanguageModel suUserOrganizationTypeLanguage)
 {
     context.DbUserOrganizationTypeLanguage.Add(suUserOrganizationTypeLanguage);
     context.SaveChanges();
     return(suUserOrganizationTypeLanguage);
 }