Beispiel #1
0
        public async Task <IHttpActionResult> Update(ContactEmail email)
        {
            var emails = new List <ContactEmail>();

            emails.Add(email);
            if (!validation.ValidateEmail(emails))
            {
                return(Conflict());
            }
            var result = await service.Update(email, email.ContactId, email.Id);

            if (!result)
            {
                return(Conflict());
            }
            else
            {
                return(Ok());
            }
        }