public ContentResult Services() { var sevices = _servicesRepository.ListOfService(); return(Content(JsonConvert.SerializeObject(new { page = 1, records = sevices.Count, rows = sevices, total = 1 }), "application/json")); }
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()); } }