public ActionResult Edit(CategoryViewModel categoryViewModel)
        {
            if (!ModelState.IsValid)
                return this.View(categoryViewModel);

            var categoryDto = Mapper.Map<CategoryViewModel, CategoryDto>(categoryViewModel);
            this.client.Update(UrlProvider.WebApiCategory, categoryDto);

            return RedirectToAction("Index");
        }
        public ActionResult Create(CategoryViewModel categoryViewModel)
        {
            if (!ModelState.IsValid)
                return this.View(categoryViewModel);

            categoryViewModel.CreationDate = DateTime.UtcNow;
            var categoryDto = Mapper.Map<CategoryViewModel, CategoryDto>(categoryViewModel);
            this.client.Create(UrlProvider.WebApiCategory, categoryDto);

            return RedirectToAction("Index");
        }
        public ActionResult Delete(CategoryViewModel categoryViewModel)
        {
            this.client.Delete(UrlProvider.WebApiCategory + categoryViewModel.Id);

            return RedirectToAction("Index");
        }