public async Task <Dictionary <string, string> > Login([FromBody] IDictionary <string, string> data) { Dictionary <string, string> response = new Dictionary <string, string>(); response.Add("result", ""); var x = await _PlayerRepo.CheckLogin(data["Login"], data["Haslo"]); if (x == null) { Set("login", "Nie znaleziono"); response["result"] = "Error"; } else { Set("id", x.InternalId.ToString()); Set("login", x.login); response["result"] = "Sukces"; } return(response); }