Пример #1
0
        public IEnumerable<Client> GetListOfClient(int userId)
        {
            var database = new Database();
            var data = database.Clients.Where(c => c.UserId == userId);

            return data;
        }
Пример #2
0
        internal object GetClientByData(Guid clientId)
        {
            var database = new Database();
            var data = database.Clients
                        .FirstOrDefault(c => c.Id == clientId);

            return data;
        }