public JsonResult Create(LogisticsFreightType obj) { try { NSession.SaveOrUpdate(obj); NSession.Flush(); } catch (Exception ee) { return Json(new { IsSuccess = false, ErrorMsg = "出错了" }); } return Json(new { IsSuccess = true }); }
public void SaveFeight(LogisticsFreightType log) { log.AreaCode = int.Parse(Session["fid"].ToString()); NSession.SaveOrUpdate(log); NSession.Flush(); }