public ActionResult <string> AddContactInformation(ContactModel contact) { try { var errorMessage = _contactManager.ValidateContact(contact, true); if (string.IsNullOrEmpty(errorMessage)) { var id = _contactManager.AddContactInformation(contact); return(Ok($"Contact successfully added with Id: {id}")); } else { return(ValidationProblem(new ValidationProblemDetails() { Detail = errorMessage })); } } catch (Exception ex) { Log.Error(ex.Message); return(Ok("Something went wrong. Please try again.")); } }