public ActionResult DeleteConfirmed(int id) { TenantEmailConfig tenantEmailConfig = _tenantEmailConfigServices.GetEmailConfigById(id); _tenantEmailConfigServices.DeleteEmailConfig(tenantEmailConfig, caCurrent.CurrentUser().UserId); return(RedirectToAction("Index")); }
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")); }