public ActionResult Addone(NumToWord numtoword)
        {
            if (ModelState.IsValid) {

               _numtowordservice.Add(numtoword);

            }

            ViewBag.ShouldClose = true;

            return View();
        }
        public ActionResult Index(NumToWord NumToWord)
        {
            ViewBag.result = NumtoWd(NumToWord.number).ToUpper();

            return View();
        }
 public void Add(NumToWord numtoword)
 {
     _repository.Add(numtoword);
     _repository.SaveChanges();
 }