/// <summary> /// Returns all users/ /// </summary> /// <returns>All users</returns> public IQueryable <Patient> GetPatients() { DataLayer.PatientsHandler dapatient = new DataLayer.PatientsHandler(); return(dapatient.GetPatients()); //2nd method which does the same thing //return new DataLayer.DAUsers().GetUsers(); }
public IQueryable <Common.Patient> GetPatients(int fileNumber, string govId, string name, string surname, Guid fileStatus, Guid KeyWorker) { DataLayer.PatientsHandler dapatient = new DataLayer.PatientsHandler(); return(dapatient.GetPatients(fileNumber, govId, name, surname, fileStatus, KeyWorker)); //2nd method which does the same thing //return new DataLayer.DAUsers().GetUsers(); }