// POST api/Categories
        public async Task PostAsync(Category categoryPosted)
        {
            MongoHelper<Category> categoryHelper = new MongoHelper<Category>();

            try
            {
                await categoryHelper.Collection.InsertOneAsync(categoryPosted);
            }
            catch (Exception e)
            {
                Trace.TraceError("Categories PostAsync error : " + e.Message);
                throw;
            }

        }
        // PUT api/Categories/5
        public async Task PutAsync(string id, Category categoryPut)
        {
            try
            {
                var filter = Builders<Category>.Filter.Eq(c => c.Id, ObjectId.Parse(id));
                var update = Builders<Category>.Update.Set("Name", categoryPut.Name);

                MongoHelper<Category> categoryHelper = new MongoHelper<Category>();
                await categoryHelper.Collection.UpdateOneAsync(filter, update);                
            }
            catch (Exception e)
            {
                Trace.TraceError("Categories PutAsync error : " + e.Message);
                throw;
            }
        }