public async Task <IHttpActionResult> Add(ContactEmail email, int contactId) { var emails = new List <ContactEmail>(); emails.Add(email); if (!validation.ValidateEmail(emails)) { return(Conflict()); } var result = await service.Add(email, contactId); if (!result) { return(Conflict()); } return(Ok()); }