public void remove_order(client c, int id) { Repairer r = RepairersRecords.Search_Repairer(id); foreach (client cl in r.Orders) { if (c == cl) { r.Orders.Remove(cl); } } }
public bool Assign_client(client c) { bool msg = RepairersRecords.Assign_client(c); return(msg); }
public bool Repairer_NotBuzy(Repairer r) { bool status = RepairersRecords.Repairer_NotBusy(r); return(status); }
public void Add_Repairer(string name, string addres, string cellno, string cnic, int id) { RepairersRecords.Add_Repairer(name, addres, cellno, cnic, id); }
public bool pay(client c, int amount) { bool stat = RepairersRecords.pay_amount(c, amount); return(stat); }
public bool edit_repairer(Repairer r) { bool x = RepairersRecords.edit(r); return(x); }
public void del_repairer(int id) { Repairer r = RepairersRecords.Search_Repairer(id); RepairersRecords.repairers.Remove(r); }
public Repairer Search_Repairer(int id) { Repairer r = RepairersRecords.Search_Repairer(id); return(r); }
public void fix_app(client c, int id) { RepairersRecords.appoint_client(c, id); }