Пример #1
0
 public int UpdateDecisionTrans(DecisionTrans decisionTrans)
 {
     decisionTrans.IsActive  = true;
     decisionTrans.IsDeleted = false;
     decisionTrans.UpdatedOn = DateTime.Now;
     return(_decisionTransRepository.UpdateDecisionTrans(decisionTrans));
 }
Пример #2
0
        public int CreateDecisionTrans(DecisionTrans decisionTrans)
        {
            decisionTrans.IsActive  = true;
            decisionTrans.IsDeleted = false;
            decisionTrans.CreatedOn = DateTime.Now;
            var isexists = _decisionTransRepository.GetdecisionTransByDecisionIdAndLangId(Convert.ToInt64(decisionTrans.DecisionId),
                                                                                          Convert.ToInt32(decisionTrans.LangId));

            if (isexists != null)
            {
                throw new Exception("Decision translation is already Exists.,");
            }
            var decisions = _decisionRepository.GetDecisionById(Convert.ToInt64(decisionTrans.DecisionId));

            Guard.NotNull(decisions, "Decision is not exists");
            decisionTrans.DecisionNo = decisions.DecisionNo;
            return(_decisionTransRepository.CreateDecisionTrans(decisionTrans));
        }
Пример #3
0
 /// <summary>
 /// Inserts the or update decision trans.
 /// </summary>
 /// <param name="decisionTrans">The decision trans.</param>
 /// <returns></returns>
 public int InsertOrUpdateDecisionTrans(DecisionTrans decisionTrans)
 {
     return(_repositoryFactory.GetDecisionTransRepository.InsertOrUpdateDecisionTrans(decisionTrans));
 }
Пример #4
0
 /// <summary>
 /// Deletes the decision trans.
 /// </summary>
 /// <param name="decisionTrans">The decision trans.</param>
 /// <returns></returns>
 /// <exception cref="System.NotImplementedException"></exception>
 public int DeleteDecisionTrans(DecisionTrans decisionTrans)
 {
     throw new System.NotImplementedException();
 }
Пример #5
0
 /// <summary>
 /// Inserts the or update decision trans.
 /// </summary>
 /// <param name="decisionTrans">The decision trans.</param>
 /// <returns></returns>
 public int InsertOrUpdateDecisionTrans(DecisionTrans decisionTrans)
 {
     return(InsertOrUpdate(decisionTrans));
 }