示例#1
0
        public ContentResult Services()
        {
            var sevices = _servicesRepository.ListOfService();

            return(Content(JsonConvert.SerializeObject(new
            {
                page = 1,
                records = sevices.Count,
                rows = sevices,
                total = 1
            }), "application/json"));
        }
示例#2
0
        public ViewResult Services(int?page)
        {
            int pageSize   = 10;
            int pageNumber = (page ?? 1);
            var uslugi     = _usligiRepository.ListOfService();

            if (uslugi.Count > 0)
            {
                return(View(uslugi));
            }
            else
            {
                return(View());
            }
        }