コード例 #1
0
        //[AllowAnonymous]
        //do we need to make model for mapping from the android to database
        public ActionResult Signup(User Newone)
        {
            var user = rep.VlidateEmailForNewUser(Newone.Email);

            if (user != null)
            {
                //already exist
                return(NotFound(false));
            }
            else
            {
                var data = rep.AddObj(Newone);
                return(Ok(data));
            }
        }