예제 #1
0
        public IHttpActionResult PutEmail([FromUri] Guid id, [FromBody] string email)
        {
            ParentDto parent = new ParentDto();

            try
            {
                parent = db.ChangeEmail(id, email);
            }
            catch (NullReferenceException e)
            {
                logger.Error(e.Message);
                return(NotFound());
            }

            return(Ok(parent));
        }