public async Task <IActionResult> DeleteWS(WorkingscheduleViewModel request) { var result = await _productApiClient.DeleteWorkingSchedule(request.Id); if (result) { TempData["result"] = "Xoá lịch công tác thành công"; _notyf.Success("Xoá lịch công tác thành công"); return(RedirectToAction("IndexWS")); } ModelState.AddModelError("", "Xoá lịch công tác không thành công");//key and message return(View(request)); }