public AjaxResult DeleteProfiles(IEnumerable <string> ids) { foreach (var id in ids) { _profileManagementService.DeleteProfile(Int32.Parse(id)); } return(new AjaxResult(AjaxResultState.OK)); }
public IActionResult DeleteProfile(int id) { try { // TODO: Add delete logic here _profileManagementService.DeleteProfile(id); return(RedirectToAction(nameof(Index))); } catch { return(RedirectToAction("DeleteProfile")); } }