public ActionResult CreateRUSEST(RusEstViewModel ee) { try { if (ModelState.IsValid) { translationRusEst.Create(mapper.Map <RusEstViewModel, TranslationRusEst>(ee)); } } catch { ModelState.AddModelError("", "Unable to save changes. "); } return(Ok()); }
public ActionResult CreateENGRUS(EngRusViewModel ee) { try { if (ModelState.IsValid) { translationEngRus.Create(mapper.Map <EngRusViewModel, TranslationEngRus>(ee)); } } catch { ModelState.AddModelError("", "Unable to save changes. "); } return(Ok()); }