public async Task <ActionResult <IEnumerable <PermissionViewModel> > > AddFunctionInPermission() { try { await Task.Run(() => { _permissionService.AddRangPermission(); _permissionService.SaveChanges(); return(Ok("Thêm thành công!")); }); } catch { throw new Exception(string.Format("Lỗi khi thêm dữ liệu")); } return(Ok()); }