public int AddUser(BeAddUser a) { InsertUser obj = new InsertUser(); int error = obj.Insert(a); return(error); }
public ContentResult SignUpUser(UserModel user) { if (ModelState.IsValid) { InsertUser.Insert(user); return(new ContentResult { StatusCode = (int)HttpStatusCode.OK }); } else { return(new ContentResult { StatusCode = (int)HttpStatusCode.InternalServerError }); } }