public async void UpdateEmployee(Employee_informations employee)
 {
     DocumentReference           coll  = db.Collection("Employees").Document(employee.Id);
     Dictionary <string, object> data1 = new Dictionary <string, object>()
     {
         { "Name", employee.Name },
         { "Age", employee.Age },
         { "Email", employee.Email },
         { "gender", employee.gender },
         { "Password", employee.Password },
         { "Position", employee.Position },
         { "Salary", employee.Salary },
     };
     await coll.UpdateAsync(data1);
 }
        public async Task <Employee> AddEmployee(Employee employee)
        {
            CollectionReference   coll         = db.Collection("Employees");
            Employee_informations New_Employee = new Employee_informations {
                Age = employee.Age, Email = employee.Email, Password = employee.Password, Position = employee.Position, Salary = employee.Salary, Name = employee.Name, gender = employee.gender.ToString()
            };
            DocumentReference d = await coll.AddAsync(New_Employee);

            Dictionary <string, object> data1 = new Dictionary <string, object>()
            {
                { "Id", d.Id }
            };
            await d.UpdateAsync(data1);

            return(employee);
        }
        public async Task <IEnumerable <Employee_informations> > GetEmployees()
        {
            Query         query     = db.Collection("Employees");
            QuerySnapshot Employees = await query.GetSnapshotAsync();

            List <Employee_informations> Employee_List = new List <Employee_informations>();

            foreach (DocumentSnapshot employee in Employees)
            {
                Employee_informations emp = employee.ConvertTo <Employee_informations>();

                Employee_List.Add(emp);
            }


            return(Employee_List);
        }