public decimal Add(ITT_EASY_QUERY_LOG model) { decimal seq = model.EASY_QUERY_TOKEN = dal.GetEasyQuerySqeNextVal(); dal.Add(model); return(seq); }
public ActionResult AddEasyQueryLog(string partNo) { try { ITT_EASY_QUERY_LOG_BLL eqLogBLL = new ITT_EASY_QUERY_LOG_BLL(); ITT_EASY_QUERY_LOG model = new ITT_EASY_QUERY_LOG(); model.PART_NO = partNo; model.QUERY_DATE = DateTime.Now; model.USER_ID = Session[CHubConstValues.SessionUser].ToString(); decimal logNo = eqLogBLL.Add(model); return(Json(new RequestResult(logNo))); } catch (Exception ex) { return(Json(new RequestResult(false, ex.Message))); } }