public IActionResult edit(PartnersDto partnersDto, IFormFile file = null)
 {
     try
     {
         if (ModelState.IsValid)
         {
             if (file != null)
             {
                 string fileName = partnersDto.name;
                 partnersDto.logo_name = _fileHelper.saveImageAndGetFileName(file, fileName);
             }
             _partnersService.update(partnersDto);
             AlertHelper.setMessage(this, "Partners updated successfully.");
             return(RedirectToAction("index"));
         }
     }
     catch (Exception ex)
     {
         AlertHelper.setMessage(this, ex.Message, messageType.error);
     }
     return(View(partnersDto));
 }