public IActionResult LanguageCreate(SuObjectAndStatusViewModel FromForm)
        {
            if (ModelState.IsValid)
            {
                SuProcessTemplateFieldLanguageModel ProcessTemplateFieldLanguage = new SuProcessTemplateFieldLanguageModel
                {
                    Name                   = FromForm.SuObject.Name,
                    Description            = FromForm.SuObject.Description,
                    MouseOver              = FromForm.SuObject.MouseOver,
                    ProcessTemplateFieldId = FromForm.SuObject.ObjectId,
                    LanguageId             = FromForm.SuObject.LanguageId
                };

                _processTemplateFieldLanguage.AddProcessTemplateFieldLanguage(ProcessTemplateFieldLanguage);
            }
            return(RedirectToAction("LanguageIndex", new { Id = FromForm.SuObject.ObjectId.ToString() }));
        }
        public SuProcessTemplateFieldLanguageModel UpdateProcessTemplateFieldLanguage(SuProcessTemplateFieldLanguageModel suProcessTemplateFieldLanguageChanges)
        {
            var changedProcessTemplateFieldLanguage = context.DbProcessTemplateFieldLanguage.Attach(suProcessTemplateFieldLanguageChanges);

            changedProcessTemplateFieldLanguage.State = Microsoft.EntityFrameworkCore.EntityState.Modified;
            context.SaveChanges();
            return(suProcessTemplateFieldLanguageChanges);
        }
 public SuProcessTemplateFieldLanguageModel AddProcessTemplateFieldLanguage(SuProcessTemplateFieldLanguageModel suProcessTemplateFieldLanguage)
 {
     context.DbProcessTemplateFieldLanguage.Add(suProcessTemplateFieldLanguage);
     context.SaveChanges();
     return(suProcessTemplateFieldLanguage);
 }