public int SignUp([FromBody] CustomModels userData) { FRDBEntities db = new FRDBEntities(); int id = db.GetUserId(userData.email).FirstOrDefault <int?>() ?? default(int);; if (id.Equals(0)) { return(db.UserSignUp(userData.email, userData.password, userData.firstName, userData.lastName, userData.percentage, userData.annualBudget, userData.location, userData.qualification)); } return(0); }