Exemplo n.º 1
0
 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());
 }
Exemplo n.º 2
0
 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());
 }