public dynamic Postuser(user user) { try { var result = db.sp_user_insert(user.user_username, user.user_password, user.user_first_name, user.user_last_name, user.user_gender, user.user_email, user.user_phone, "111", user.user_date_of_birth, user.country_id); if (result == 1) return true; else return false; } catch(Exception ex) { return false; } }
public dynamic Getuser(user user) { return new { user = db.sp_user_readByUsernameAndPassword(user.user_username, user.user_password) }; }