本文介绍了在编辑视图中使用View Model MVC4的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨
我在项目中使用了视图模型
HiI have used a view model on my project
namespace KCM.ViewModel
{
public class KCMViewModel
{
public CrisisCallerInfo CrisisCallerInfo { get; set; }
public CrisisComments CrisisComments { get; set; }
public CrisisDeceasedInfo CrisisDeceasedInfo { get; set; }
public CrisisValidationInfo CrisisValidationInfo { get; set; }
}
}
如何从ViewModel获取数据,以便我可以在项目的编辑视图中使用,编辑视图或controll action有一个搜索方法,在公共CrisisDeceasedInfo CrisisDeceasedInfo中搜索已故的Id号,并且应该获得该成员的所有信息
How do get data from the ViewModel so that i can use in the Edit View on the project, The edit view or controll action has a search method which search for a deceased Id number in the public CrisisDeceasedInfo CrisisDeceasedInfo and should get all info for that member
推荐答案
这篇关于在编辑视图中使用View Model MVC4的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!