public static List <UserDTO> Search(string FirstName, string LastName, string SMS, string Email, string Phone) { List <User> users = RenterDAL.Search(FirstName, LastName, SMS, Email, Phone); return(ConvertListToDTO(users)); }
//public static UserDTO GetRenterByID(int id) //{ // using (ArgamanExpressEntities db = new ArgamanExpressEntities()) // { // User renter = db.Users.Find(id ); // return new UserDTO(renter); // } //} //public static List<RentalDTO> getRentalsbyRenterID(int id)//פרטי השכרה לפי איידי //{ // List<Rental> rentals = RenterDAL.getRentalsbyRenterID(id); // return Bl.RentalBL.ConvertListToDTO(rentals); //} public static List <PropertyDTO> getPropertiesbyRenterID(int id)//דירות ששוכר לפי איידי { List <Property> properties = RenterDAL.getPropertiesbyRenterID(id); return(Bl.PropertyBL.ConvertListToDTO(properties)); }