public IActionResult Hindi(WordCounterModel wc)
        {
            string output = wc.WordCounter;
            Hindi  hindi  = new Hindi();

            wc.wordDict = hindi.computeHindi(output);
            return(View(wc));
        }
Example #2
0
 public void ChooseLanguage(object sender, KeyEventArgs e)
 {
     if (e.Key == Key.F1)
     {
         Hindi.PerformClick();
     }
     if (e.Key == Key.F2)
     {
         English.PerformClick();
     }
 }
Example #3
0
 public async Task AddQuote(Hindi item)
 {
     try
     {
         await _context.Hindi.InsertOneAsync(item);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Example #4
0
        public void GetOnlyOneCountryForHindiLanguage()
        {
            var data = new Hindi().Countries;

            data.Length.Should().Be(1);
        }
        public async Task <IActionResult> Post([FromBody] Hindi value)
        {
            await _hindiQManager.AddQuote(value);

            return(Ok());
        }
Example #6
0
 public HindiToEnglish(Hindi _hindi)
 {
     this._hindi = _hindi;
 }