public ActionResult DeleteConfirmed(int id)
        {
            TenantEmailConfig tenantEmailConfig = _tenantEmailConfigServices.GetEmailConfigById(id);

            _tenantEmailConfigServices.DeleteEmailConfig(tenantEmailConfig, caCurrent.CurrentUser().UserId);
            return(RedirectToAction("Index"));
        }
Exemple #2
0
        public ActionResult DeleteConfirmed(int id)
        {
            // get properties of user
            caUser user = caCurrent.CurrentUser();

            TenantEmailConfig tenantemailconfig = _tenantEmailConfigService.GetEmailConfigById((int)id);

            _tenantEmailConfigService.DeleteEmailConfig(tenantemailconfig, user.UserId);

            return(RedirectToAction("Index"));
        }