public JsonResult IsGot(int sampleGettingId) { var result = _nurseService.ChangeIsGot(sampleGettingId); if (result == true) { var tokens = _nurseService.GetAllTokens();// lấy tất cả device token int[] roleIds = { //(int)RoleEnum.Receptionist, (int)RoleEnum.Nurse, (int)RoleEnum.Cashier, //(int)RoleEnum.Manager }; var data = new { roleIds, message = "Hoàn tất lấy mẫu" }; SendNotificationUtils.SendNotification(data, tokens); } return(Json(new { success = result })); }