public int UpdateDecisionTrans(DecisionTrans decisionTrans) { decisionTrans.IsActive = true; decisionTrans.IsDeleted = false; decisionTrans.UpdatedOn = DateTime.Now; return(_decisionTransRepository.UpdateDecisionTrans(decisionTrans)); }
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)); }
/// <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)); }
/// <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(); }
/// <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)); }