public IActionResult DeleteSiteConfiguration(int siteConfigurationId)
        {
            _siteConfigurationService
            .DeleteSiteConfiguration(siteConfigurationId);

            return(RedirectToAction("Index"));
        }
Example #2
0
 public IHttpActionResult Delete(int id)
 {
     try
     {
         _siteConfigurationService.DeleteSiteConfiguration(id);
         return(Ok());
     }
     catch (PlatformModuleException ex)
     {
         return(BadRequest(ex.Message));
     }
 }