public IActionResult Delete(DeleteMonthViewModel model) { List <Month> months = _logic.GetAllCategories(); model.Months = months; if (model.MonthId != Guid.Empty) { _logic.DeleteMonth(model.MonthId); return(RedirectToAction("SuccesfullDelete", model)); } return(View(model)); }
public IActionResult SuccesfullDelete(DeleteMonthViewModel model) { return(View(model)); }