public IHttpActionResult GetContactList() { IEnumerable <Contact> contactList = _contactManager.GetAllContactDeatils(); if (contactList != null) { return(Ok(contactList)); } return(NotFound()); }