public void ResetUser() { user = new VOUser() { Token = "" }; }
public bool AuthenticateUser(string id, string pass) { user = new VOUser() { Token = "2942340232", Status = "Unavailable", Id = "dsfddsfas233", Role = "Seller" }; return(true); }
public bool AuthenticateUser(string id, string pass) { var response = DAL.AuthenticateUser(id, pass); if (response.IsSuccessStatusCode) { var keyValue = JsonConvert.DeserializeObject <Dictionary <string, string> >(response.Content.ReadAsStringAsync().Result); string token = null; keyValue.TryGetValue("token", out token); user = new VOUser() { Token = token }; return(true); } return(false); }
public void ResetUser() { user = null; }