public IActionResult Index()
        {
            wordcount aa = new wordcount()
            {
                word = "content",
                num  = 6
            };

            _unitOfWork.Add(aa);
            _unitOfWork.Commit();
            return(View());
        }
Пример #2
0
        wordcount[] CreationOfList(string[] res_str)
        {
            wordcount[] wc = new wordcount[res_str.Length];

            Array.Sort(res_str);

            for (int i = 0; i < res_str.Length; i++)
            {
                if (res_str [i] != null)
                {
                    wc [i].str   = res_str [i];
                    wc [i].count = Compare(wc [i].str, res_str);
                }
            }
//			for (int i = 0; i < wc.Length; i++) {
//				Console.Write (wc[i].str);
//			}

            return(wc);
        }