コード例 #1
0
        public IHttpActionResult PostUserDetail(UserDetail UserDetail, GuestUserDetail GuestUserDetail)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }
            db.proc_UserRegistration(GuestUserDetail.FirstName, GuestUserDetail.Lastname, GuestUserDetail.EmailId, GuestUserDetail.PhoneNumber,
                                     UserDetail.Password, UserDetail.Gender, UserDetail.DOB, UserDetail.Address, UserDetail.State, UserDetail.City, UserDetail.Pincode);
            db.SaveChanges();

            return(CreatedAtRoute("DefaultApi", new { id = UserDetail.UID }, UserDetail));
        }