public async Task <ActionResult> Edit(int id, ServiceRepositories.Contact contact)
        {
            HttpResponseMessage responseMessage = _IcontactService.Edit(id, contact);

            if (responseMessage.IsSuccessStatusCode)
            {
                return(RedirectToAction("Index"));
            }
            return(RedirectToAction("Error"));
        }
        public async Task <ActionResult> Create(ServiceRepositories.Contact conObj)
        {
            var response = _IcontactService.PostContact(conObj);

            if (response.IsSuccessStatusCode)
            {
                return(RedirectToAction("Index"));
            }

            return(RedirectToAction("Error"));
        }