public List <Patient> GetPatients(string url, Dictionary <string, string> dictionary) { var result = ApiConnect.Post(url, dictionary); List <Patient> patientList = JsonConvert.DeserializeObject <List <Patient> >(result.Result.ToString()); if (patientList.Count > 0) { return(patientList); } return(null); }
public List <Recipe> GetRecipes(string url, Dictionary <string, string> dictionary) { var result = ApiConnect.Post(url, dictionary); List <Recipe> recipes = JsonConvert.DeserializeObject <List <Recipe> >(result.Result.ToString()); if (recipes.Count > 0) { return(DeserializeRecipe(recipes)); } return(null); }