Should I create a related view for each condition in my controller? e.g. I have the following code
public ActionResult List(){
List<Report> reports = getReport();
if(report.Count > 0){
//returning the normal view
return View();
}else{
//show the view for no reports
return View("NoReportAvailable");
}
}
or i can also have only one view (the List.aspx) and do if else in my view, maybe render partial view "NoReportAvailablePartial" in case of 0 reports.
which one is better, or how do you guy deal with this scenario?