public static sysRole EntityMap(this sysRoleView model) { //2.0 将一个实体转换成另外一个实体 return(Mapper.Map <sysRoleView, sysRole>(model)); }
public ActionResult add(sysRoleView model) { return(View()); }
public static sysRole EntityMap(this sysRoleView model) { return(Mapper.Map <sysRoleView, sysRole>(model)); }