public IActionResult AddPermissionGroup(string permissionGroupName) { try { var permissionGroup = new PermissionGroup() { GroupName = permissionGroupName }; var res = _permissionManager.AddOrUpdatePermissionGroup(permissionGroup); _uow.Save(); var permissionGroupVm = Mapper.Map <PermissionGroupVm>(res); return(Ok(permissionGroupVm)); } catch (Exception ex) { return(StatusCode(500, ex.Message)); } }