public async Task <bool> UpdateProduct(ProductModel product) { using (_unitOfWork = new UnitOfWorkContext()) { var sel = _unitOfWork.ProductRepository.Update(product.Cast <DomainClasses.Product.Product>()); return(sel); } }