/// <summary>
        /// به روز رسانی یک آیتم در این جدول
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public async Task <SweetAlertExtenstion> UpdateAsync(ProductGroupDependenciesUpdateViewModel model)
        {
            try
            {
                var entity = Mapper.Map <ProductGroupDependencies>(model);
                await UpdateAsync(entity);

                return(SweetAlertExtenstion.Ok());
            }
            catch
            {
                return(SweetAlertExtenstion.Error());
            }
        }
 public async Task <IActionResult> Update(ProductGroupDependenciesUpdateViewModel model)
 {
     TempData.AddResult(await _productGroupDependenciesRepository.UpdateAsync(model));
     return(Redirect(IndexUrlWithQueryString));
 }