public ActionResult GeneraReport(int Id, string Year, string Month, string Note) { RptHouseManagementManager ObjRptHouseManagementManager = new RptHouseManagementManager(); NewReportInputDto ObjNewReportInputDto = new NewReportInputDto(); ObjNewReportInputDto.year = Year; ObjNewReportInputDto.month = Month; ObjNewReportInputDto.notes = Note; IndexViewModel vm = InitializeIndexView(); try { ObjRptHouseManagementManager.NewReport(ObjNewReportInputDto, Id); //throw new Exception("errore colossale"); return(RedirectToAction("Index")); } catch (Exception ex) { return(RedirectToAction("Index", "Errore", new { @Errore = ex.Message })); } //valorizza // return View("Index",vm); }