コード例 #1
0
        public async Task <int> DeleteMembershipDetails(MembershipViewModel vm)
        {
            objMembershipOps = new MembershipOps();
            string status = await objMembershipOps.DeleteMembershipDetails(vm.Id, vm.Type);

            int result = Convert.ToInt32(status);

            return(result);
        }
コード例 #2
0
        public string InsertMembershipBenefit(MembershipViewModel vm)
        {
            objMembershipOps = new MembershipOps();
            if (vm != null)
            {
                objMembershipOps.MembershipName       = vm.MembershipName;
                objMembershipOps.MembershipPrefixCode = vm.MembershipPrefixCode;
                objMembershipOps.MembershipCategoryId = vm.MembershipCategoryId;
                objMembershipOps.DurationId           = vm.DurationId;
                objMembershipOps.Fees        = Convert.ToDecimal(vm.Fees);
                objMembershipOps.CreditLimit = Convert.ToInt32(vm.CreditLimit);
                objMembershipOps.MaxAdult    = vm.MaxAdult;
                objMembershipOps.MaxChild    = vm.MaxChild;
            }

            return(MembershipOps.InsertMembershipBenefit(objMembershipOps));
        }
コード例 #3
0
        public string UpdateMembershipBenefitDetails(MembershipViewModel vm)//MembershipViewModel vm)
        {
            objMembershipOps = new MembershipOps();

            MemberShipBenefit objList = new MemberShipBenefit();

            if (vm != null)
            {
                objList.MembershipName       = vm.MembershipName;
                objList.MemberPrefixCode     = vm.MembershipPrefixCode;
                objList.MembershipCategoryId = vm.MembershipCategoryId;
                objList.DurationId           = vm.DurationId;
                objList.Fees        = Convert.ToDecimal(vm.Fees);
                objList.CreditLimit = Convert.ToInt32(vm.CreditLimit);
                objList.MaxAdult    = vm.MaxAdult;
                objList.MaxChild    = vm.MaxChild;
                objList.Id          = vm.Id;
            }

            return(MembershipOps.UpdateMembershipBenefitDetails(objList));
        }