Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static Employee GetEmployee(String EmployeeNam)
- {
- List<Employee> LB = new List<Employee>();
- Task<FirebaseResponse> Resp = StaticValues._8080_MainFClient.GetAsync("/Employee");
- JArray jA;
- if (Resp.Result.Body.ToString() != "null")
- jA = JArray.Parse(Resp.Result.Body.ToString());
- else
- jA = JArray.Parse("[]");
- Employee L = new Employee();
- foreach (JObject A in jA)
- {
- if (A["Name"].ToString() == EmployeeNam)
- {
- L.Name = A["Name"].ToString();
- L.ImageURL = A["ImageURL"].ToString();
- L.BranchName = A["BranchName"].ToString();
- L.ISACTIVE = A["ISACTIVE"].ToString();
- L.date = JsonConvert.DeserializeObject<Dictionary<string, string>>(A["data"].ToString());
- }
- }
- return L;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement