public ActionResult UserCenter() { var userid = OperatorProvider.Provider.GetCurrent().UserId; var userInfo = _userBus.FindModel(userid); return(View(userInfo)); }
public ActionResult Info(int?id) { t_user model = new t_user(); if (id.GetValueOrDefault() > 0) { model = _bus.FindModel(id); } return(View(model)); }