public PartialViewResult GetGoodsList(int id) { List <Good> tmp = Good.GetAllSubCategoriesGoods(Good.GetAllSubCategoriesIds(new List <int?>() { id })); foreach (Good item in tmp) { item.CalcPrice(); } return(PartialView("MainGoodsPartial", tmp)); }