public ActionResult Edit(ViewModelPicture model)
        {
            var entity = Mapper.Map<ViewModelPicture, Picture>(model);
            ResponseMessage response = _pictureService.Update(entity);

            if (response.IsError == true)
            {
                foreach (var item in response.ErrorCodes)
                {
                    ModelState.AddModelError(item, item);
                }

                return View(model);
            }
            return RedirectToAction("List", new { id = model.Product_ProductId });
        }
        public ActionResult Delete(ViewModelPicture model)
        {
            _pictureService.Delete(model.Id);

            return RedirectToAction("List", new { id = model.Product_ProductId });
        }
 public ActionResult Create(ViewModelPicture model)
 {
     var entity = Mapper.Map<ViewModelPicture, Picture>(model);
     _pictureService.Add(entity);
     return RedirectToAction("List", new { id = model.Product_ProductId });
 }