public VendorsEntertainment UpdateEntertainment(VendorsEntertainment vendorsEntertainment, Vendormaster vendorMaster, long masterid, long vid)
        {
            string updateddate = DateTime.UtcNow.ToShortDateString();

            vendorsEntertainment.Status      = "Active";
            vendorsEntertainment.UpdatedDate = Convert.ToDateTime(updateddate);
            vendorMaster.Status      = "Active";
            vendorMaster.UpdatedDate = Convert.ToDateTime(updateddate);
            vendorMaster.ServicType  = "Entertainment";
            vendorMaster             = vendorMasterRepository.UpdateVendorMaster(vendorMaster, masterid);
            vendorsEntertainment     = vendorEntertainmentRespository.UpdateEntertainment(vendorsEntertainment, masterid, vid);
            return(vendorsEntertainment);
        }
        public VendorsTravelandAccomodation UpdateTravelandAccomodation(VendorsTravelandAccomodation vendorTravelandAccomodation, Vendormaster vendorMaster, long masterid, long vid)
        {
            string updateddate = DateTime.UtcNow.ToShortDateString();

            vendorTravelandAccomodation.Status      = "Active";
            vendorTravelandAccomodation.UpdatedDate = Convert.ToDateTime(updateddate);
            vendorMaster.Status         = "Active";
            vendorMaster.UpdatedDate    = Convert.ToDateTime(updateddate);
            vendorMaster.ServicType     = "Travel&Accommodation";
            vendorMaster                = vendorMasterRepository.UpdateVendorMaster(vendorMaster, masterid);
            vendorTravelandAccomodation = vendorsTravelandAccomodationRepository.UpdateTravelandAccomodation(vendorTravelandAccomodation, masterid, vid);
            return(vendorTravelandAccomodation);
        }
        public VendorsWeddingCollection UpdateWeddingCollection(VendorsWeddingCollection vendorsWeddingCollection, Vendormaster vendorMaster, long masterid, long vid)
        {
            string updateddate = DateTime.UtcNow.ToShortDateString();

            vendorsWeddingCollection.Status      = "Active";
            vendorsWeddingCollection.UpdatedDate = Convert.ToDateTime(updateddate);
            vendorMaster.Status      = "Active";
            vendorMaster.UpdatedDate = Convert.ToDateTime(updateddate);
            vendorMaster.ServicType  = "WeddingCollection";
            vendorMaster             = vendorMasterRepository.UpdateVendorMaster(vendorMaster, masterid);
            vendorsWeddingCollection = vendorsWeddingCollectionsRepository.UpdateWeddingCollection(vendorsWeddingCollection, masterid, vid);
            return(vendorsWeddingCollection);
        }
        public VendorsDecorator UpdateDecorator(VendorsDecorator vendorsDecorator, Vendormaster vendorMaster, long masterid, long vid)
        {
            DateTime updateddate = TimeZoneInfo.ConvertTimeFromUtc(DateTime.UtcNow, INDIAN_ZONE);

            vendorsDecorator.Status      = "Active";
            vendorsDecorator.UpdatedDate = updateddate;
            vendorMaster.Status          = "Active";
            vendorMaster.UpdatedDate     = updateddate;
            vendorMaster.ServicType      = "Decorators";
            vendorMaster     = vendorMasterRepository.UpdateVendorMaster(vendorMaster, masterid);
            vendorsDecorator = vendorsDecoratorRepository.UpdateDecorator(vendorsDecorator, masterid, vid);
            return(vendorsDecorator);
        }
        public VendorsPhotography UpdatesPhotography(VendorsPhotography vendorsPhotography, Vendormaster vendorMaster, long masterid, long vid)
        {
            DateTime updateddate = TimeZoneInfo.ConvertTimeFromUtc(DateTime.UtcNow, INDIAN_ZONE);

            vendorsPhotography.Status      = "Active";
            vendorsPhotography.UpdatedDate = updateddate;
            vendorMaster.Status            = "Active";
            vendorMaster.UpdatedDate       = updateddate;
            vendorMaster.ServicType        = "Photography";
            vendorMaster       = vendorMasterRepository.UpdateVendorMaster(vendorMaster, masterid);
            vendorsPhotography = vendorsPhotographyRepository.UpdatesPhotography(vendorsPhotography, masterid, vid);
            return(vendorsPhotography);
        }
        public VendorsCatering activeCatering(VendorsCatering vendorsCatering, Vendormaster vendorMaster, long masterid, long vid)
        {
            DateTime updateddate = TimeZoneInfo.ConvertTimeFromUtc(DateTime.UtcNow, INDIAN_ZONE);

            vendorsCatering.Status      = "Active";
            vendorsCatering.UpdatedDate = updateddate;
            vendorMaster.Status         = "Active";
            vendorMaster.UpdatedDate    = updateddate;
            vendorMaster.ServicType     = "Catering";
            vendorMaster    = vendorMasterRepository.UpdateVendorMaster(vendorMaster, masterid);
            vendorsCatering = vendorCateringRespository.UpdatesCatering(vendorsCatering, masterid, vid);
            return(vendorsCatering);
        }
        public VendorsInvitationCard UpdatesInvitationCard(VendorsInvitationCard vendorsInvitationCard, Vendormaster vendorMaster, long masterid, long vid)
        {
            string updateddate = DateTime.UtcNow.ToShortDateString();

            vendorsInvitationCard.Status      = "Active";
            vendorsInvitationCard.UpdatedDate = Convert.ToDateTime(updateddate);
            vendorMaster.Status      = "Active";
            vendorMaster.UpdatedDate = Convert.ToDateTime(updateddate);
            vendorMaster.ServicType  = "InvitationCard";
            vendorMaster             = vendorMasterRepository.UpdateVendorMaster(vendorMaster, masterid);
            vendorsInvitationCard    = vendorInvitationCardsRepository.UpdatesInvitationCard(vendorsInvitationCard, masterid, vid);
            return(vendorsInvitationCard);
        }
Пример #8
0
        public VendorsGift UpdatesGift(VendorsGift vendorsGift, Vendormaster vendorMaster, long masterid, long vid)
        {
            string updateddate = DateTime.UtcNow.ToShortDateString();

            vendorsGift.Status       = "Active";
            vendorsGift.UpdatedDate  = Convert.ToDateTime(updateddate);
            vendorMaster.Status      = "Active";
            vendorMaster.UpdatedDate = Convert.ToDateTime(updateddate);
            vendorMaster.ServicType  = "Gifts";
            vendorMaster             = vendorMasterRepository.UpdateVendorMaster(vendorMaster, masterid);
            vendorsGift = vendorGiftsRepository.UpdatesGift(vendorsGift, masterid, vid);
            return(vendorsGift);
        }
Пример #9
0
        public VendorsOther UpdateOther(VendorsOther vendorOther, Vendormaster vendorMaster, long masterid, long vid)
        {
            string updateddate = DateTime.UtcNow.ToShortDateString();

            vendorOther.Status       = "Active";
            vendorOther.UpdatedDate  = Convert.ToDateTime(updateddate);
            vendorMaster.Status      = "Active";
            vendorMaster.UpdatedDate = Convert.ToDateTime(updateddate);
            vendorMaster.ServicType  = "Other";
            vendorMaster             = vendorMasterRepository.UpdateVendorMaster(vendorMaster, masterid);
            vendorOther = vendorOthersRepository.UpdateOthers(vendorOther, masterid, vid);
            return(vendorOther);
        }
Пример #10
0
        public VendorVenue UpdateVenue(VendorVenue vendorVenue, Vendormaster vendorMaster, long masterid, long vid)
        {
            DateTime updateddate = TimeZoneInfo.ConvertTimeFromUtc(DateTime.UtcNow, INDIAN_ZONE);

            //vendorVenue.Status = "Active";
            vendorVenue.UpdatedDate = updateddate;
            //vendorMaster.Status = "Active";
            vendorMaster.UpdatedDate = updateddate;
            vendorMaster.ServicType  = "Venue";
            vendorMaster             = vendorMasterRepository.UpdateVendorMaster(vendorMaster, masterid);
            vendorVenue = vendorVenueRepository.UpdateVenue(vendorVenue, masterid, vid);
            return(vendorVenue);
        }
Пример #11
0
        public VendorsBeautyService UpdatesBeautyService(VendorsBeautyService vendorsBeautyService, Vendormaster vendorMaster, long masterid, long vid)
        {
            string updateddate = DateTime.UtcNow.ToShortDateString();

            vendorsBeautyService.Status      = "Active";
            vendorsBeautyService.UpdatedDate = Convert.ToDateTime(updateddate);
            vendorMaster.Status      = "Active";
            vendorMaster.UpdatedDate = Convert.ToDateTime(updateddate);
            vendorMaster.ServicType  = "BeautyServices";
            vendorMaster             = vendorMasterRepository.UpdateVendorMaster(vendorMaster, masterid);
            vendorsBeautyService     = vendorBeautyServiceRespository.UpdatesBeautyService(vendorsBeautyService, masterid, vid);
            return(vendorsBeautyService);
        }
Пример #12
0
 public Vendormaster UpdateVendorMaster(Vendormaster vendorMaster, long id)
 {
     return(vendormasterRepository.UpdateVendorMaster(vendorMaster, id));
 }