Пример #1
0
        public async Task <ViewResult> CreateContact(ContactViewModel contactViewModel, string sortOrder)
        {
            var response = await _service.CreateContactAsync(contactViewModel);

            var contacts = response.Contacts;

            contacts = SortOrFilterContacts(ViewBag, sortOrder, "", contacts);

            return(View(contacts));
        }