public void register_doctor(string name, string email, string password, string number, string type, string sq, string sa) { classDoctor doc = new classDoctor(); doc.Name = name; doc.Email = email; doc.Password = password; doc.Mobile = number; doc.Type = type; doc.Secretq = sq; doc.Secreta = sa; classDbDoctor.Db.Add(doc); }
public void add_doctor(classDoctor doc) { db.Add(doc); }