public async Task <IActionResult> ContactConfirmed(ContactInformation contact) { var result = await _con.AddContact(contact); if (!result.Item1) { return(BadRequest(new { Message = "an error occured" })); } else { if (result.Item2 == "sent") { return(Ok(new { Added = true, MailSent = true })); } else { return(Ok(new { Added = true, MailSent = false })); } } }