예제 #1
0
        public AjaxResult DeleteProfiles(IEnumerable <string> ids)
        {
            foreach (var id in ids)
            {
                _profileManagementService.DeleteProfile(Int32.Parse(id));
            }

            return(new AjaxResult(AjaxResultState.OK));
        }
예제 #2
0
        public IActionResult DeleteProfile(int id)
        {
            try
            {
                // TODO: Add delete logic here
                _profileManagementService.DeleteProfile(id);

                return(RedirectToAction(nameof(Index)));
            }
            catch
            {
                return(RedirectToAction("DeleteProfile"));
            }
        }