public TermAndCondition GetTermAndCondition(int termConditionId)
        {
            TermAndCondition termAndCondition = new TermAndCondition();

            termAndCondition = new TermAndConditionRepository().GetTermAndCondition(termConditionId);
            return(termAndCondition);
        }
        public IHttpActionResult SaveTermAndCondition(TermAndCondition termAndCondition)
        {
            TermAndCondition result = new TermAndConditionRepository().SaveTermAndCondition(termAndCondition);

            if (result == null)
            {
                return(NotFound());
            }
            else
            {
                return(Ok(result.TermAndConditionId));
            }
        }
        public TermAndCondition GetlatestTermsAndCondition(int OperationZoneId, string TermAndCondtionType, string shortCode)
        {
            var termAndConditions = new TermAndConditionRepository().GetLatestTermAndCondition(OperationZoneId, TermAndCondtionType, shortCode);

            return(termAndConditions);
        }
        public List <TermAndCondition> GetAllTermsAndCondition(int OperationZoneId, int userId)
        {
            var termAndConditions = new TermAndConditionRepository().GetAllTermAndCondition(OperationZoneId, userId);

            return(termAndConditions);
        }