public List <PublicModel.ClientPub> GetClients() { using (var context = new Model.CarRentContext()) { return(context.Clients.Select(x => ClientMapper.ToPublicModel(x)).ToList()); } }