예제 #1
0
        public IHttpActionResult PostAuther(Auther auther)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            db.AddAuther(auther);

            return(CreatedAtRoute("DefaultApi", new { id = auther.Auth_Id }, auther));
        }