public Employee LoginUser(int userNAME, string userPASS) { RikoshetWebService.RikoshetWebService t = new RikoshetWebService.RikoshetWebService(); Employee temps = JsonConvert.DeserializeObject <Employee>(t.loginUser(userNAME, userPASS)); return(temps); }
public string loginUser(string userNAME, string userPASS) { int usern = Convert.ToInt32(userNAME); RikoshetWebService.RikoshetWebService t = new RikoshetWebService.RikoshetWebService(); Employee temps = JsonConvert.DeserializeObject <Employee>(t.loginUser(usern, userPASS)); if (temps.User_name != 0) { string empInFO = temps.First_name + "|" + temps.Last_name + "|" + Convert.ToString(temps.User_name) + "|" + Convert.ToString(temps.Type); return(empInFO); } return("0"); }