如何动态更新日期,日期,出口ID和客户ID以及呼叫存储过程

问题描述

  1. 如何动态更改日期,日期,出口ID,客户ID 控制器从存储库中获取数据时,这是我的控制器

    使用系统; 使用System.Collections.Generic; 使用System.Linq; 使用System.Web; 使用System.Web.Mvc; 使用Web.DBModels; 使用Web.DBModels.Repository; 使用Web.DBModels.viewmodels;

    namespace Web.Controllers
    {
        public class CustomerFeedbackController : Controller
        {
    
    
            // GET: CustomerFedback
            public ActionResult Index(int CustomerId)
            {
    
                ViewBag.CustomerId = CustomerId;
    
                using (CustomerFeedbackRepository repo = new CustomerFeedbackRepository())
                {
    
                    var data = repo.getCustomerFeedbackData(fromdate,todate,outletid,custid).ToList();
                   List<CustomerFeedbackVM> model = new List<CustomerFeedbackVM>();
                    if (data != null && data.Count > 0)
                    {
                        foreach (var c in data)
                        {
                            model.Add(c);
                        }
    
                    }
                    return View("~/views/CustomerFeedback/Index.cshtml",model);
                }
    
    
    
            }
        }
    
    } 
    

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)