public ActionResult SToPayForLong(int page = 1)
 {
     DogovorViewModel model = new DogovorViewModel();
     model.dogovora =
         dataManager.DogovorRepository.GetDogovora()
             .Where(z => z.Статус == "к оплате на продление")
             .OrderBy(x => x.Номер_договора)
             .Skip((page - 1) * PageSize)
             .Take(PageSize);
     model.sotrudniki = dataManager.UsersRepository.GetUsers();
     model.client = dataManager.ClientsRepository.GetClients();
     model.contactnoeLico = dataManager.ContaktnoeLicoRepository.GetContactnoeLico();
     model.PagingInfo = new PagingInfoViewModel
     {
         CurrentPage = page,
         ItemsPerPage = PageSize,
         TotalItems = dataManager.DogovorRepository.GetDogovora().Where(z => z.Статус == "к оплате на продление").Count()
     };
     return View(model);
 }
        public ActionResult Index(int page = 1)
        {
            AfterChangeStatusOnSRequestLong();
            DogovorViewModel model = new DogovorViewModel();
            model.dogovora = dataManager.DogovorRepository.GetDogovora().OrderBy(x=>x.Номер_договора).Skip((page-1)*PageSize).Take(PageSize);

            model.sotrudniki = dataManager.UsersRepository.GetUsers();
            model.client = dataManager.ClientsRepository.GetClients();
            model.contactnoeLico = dataManager.ContaktnoeLicoRepository.GetContactnoeLico();
            model.PagingInfo = new PagingInfoViewModel
            {
                CurrentPage = page,
                ItemsPerPage = PageSize,
                TotalItems = dataManager.DogovorRepository.GetDogovora().Count()
            };
            return View(model);
        }