public ActionResult Create(EndClient ec)
 {
     if(ModelState.IsValid)
     {
         _iRepository.Add(ec);
         return RedirectToAction("Index");
     }
     else
     {
         return View(ec);
     }
 }
 public ActionResult Edit(int id, EndClient ec)
 {
     if(ModelState.IsValid)
     {
         _iRepository.Update(ec);
         return RedirectToAction("Index");
     }
     else
     {
         return View(ec);
     }
 }