public IQueryable <Common.DiagnosisPatient> GetDiagnosis(Guid id) { DataLayer.PatientsHandler dapat = new DataLayer.PatientsHandler(); return(dapat.GetDiagnosis(id)); //2nd method which does the same thing //return new DataLayer.DAUsers().GetUsers(); }