public IActionResult Edit([FromForm] EditHolidayViewModel viewModel) { try { holidayService.Update(viewModel.Id, viewModel.Type, viewModel.Days, viewModel.Description); return(RedirectToAction("Index")); } catch (Exception e) { return(BadRequest(e.Message)); } }