public ActionResult GetAll()
 {
     var db = new CATSEntities();
     Translation.Service.Translater converter = new Service.Translater();
     converter.GetForText("","");
     return View(db.Translations.ToList());
 }
 //[HttpPost]
 public ActionResult Create(Translation.Models.CATSEntities translation)
 {
     try
     {
         using (var db = new CATSEntities())
         {
             //db.Translations.add(translation);
             db.SaveChanges();
         }
         return RedirectToAction("Index");
     }
     catch
     {
         return View();
     }
 }
Exemplo n.º 3
0
 //[HttpPost]
 public ActionResult Create(Translation.Models.CATSEntities translation)
 {
     try
     {
         using (var db = new CATSEntities())
         {
             //db.Translations.add(translation);
             db.SaveChanges();
         }
         return(RedirectToAction("Index"));
     }
     catch
     {
         return(View());
     }
 }