Himall.Web/Areas/Web/Controllers/ProductCommentController.cs
(完整代码) 805Busing Himall.IServices;
using Himall.Model;
using Himall.Web.Framework;
using Microsoft.CSharp.RuntimeBinder;
using System;
using System.Linq;
using System.Linq.Expressions;
using System.Runtime.CompilerServices;
using System.Web.Mvc;
namespace Himall.Web.Areas.Web.Controllers
{
public class ProductCommentController : BaseController
{
public ProductCommentController()
{
}
public ActionResult Index(long id = 0L)
{
decimal? nullable = ServiceHelper.Create<ICommentService>().GetCommentsByProductId(id).Average<ProductCommentInfo>((ProductCommentInfo a) => (decimal?)a.ReviewMark);
decimal valueOrDefault = nullable.GetValueOrDefault();
ViewBag.productMark = valueOrDefault;
return View(ServiceHelper.Create<IProductService>().GetProduct(id));
}
}
}
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
