/// <summary>
        /// Delete Standalone TruckDoc Details
        /// </summary>
        /// <param name="standaloneTruckDocs"></param>
        private static void DeleteStandaloneTruckDocDetails(StandaloneTruckDocDetails standaloneTruckDocs)
        {
            standalonetruckdocdetail standaloneTruckDocEntity = new standalonetruckdocdetail();
            AutoMapper.Mapper.Map(standaloneTruckDocs, standaloneTruckDocEntity);

            ESalesUnityContainer.Container.Resolve<IGenericRepository<standalonetruckdocdetail>>()
                .Update(standaloneTruckDocEntity);
        }
        /// <summary>
        /// Save And Update Standalone Truck Document Details
        /// </summary>
        /// <param name="lstTruckDetails"></param>
        public void SaveAndUpdateStandaloneTruckDocumentDetails(IList<StandaloneTruckDocDetails> lstTruckDetails)
        {
            foreach (StandaloneTruckDocDetails item in lstTruckDetails)
            {
                standalonetruckdocdetail truckDocDetailsEntity = new standalonetruckdocdetail();
                StandaloneTruckDocDetails truckDocDetail = GetStandaloneTruckDocDetailsByTruckIdAndDocId(item.StandaloneTruck_Doc_TruckId,
                    item.StandaloneTruck_Doc_DocId);

                if (truckDocDetail.StandaloneTruck_Doc_Id > 0)
                {
                    AutoMapper.Mapper.Map(truckDocDetail, truckDocDetailsEntity);

                    truckDocDetailsEntity.StandaloneTruck_Doc_DocNo = item.StandaloneTruck_Doc_DocNo;
                    truckDocDetailsEntity.StandaloneTruck_Doc_ExDate = item.StandaloneTruck_Doc_ExDate;
                    if (item.StandaloneTruck_Doc_File == null)
                    {
                        truckDocDetailsEntity.StandaloneTruck_Doc_IsDeleted = true;
                    }
                    else
                    {
                        truckDocDetailsEntity.StandaloneTruck_Doc_File = item.StandaloneTruck_Doc_File;
                        truckDocDetailsEntity.StandaloneTruck_Doc_IsDeleted = false;
                    }
                    truckDocDetailsEntity.StandaloneTruck_Doc_FileName = item.StandaloneTruck_Doc_FileName;
                    truckDocDetailsEntity.StandaloneTruck_Doc_CreatedBy = item.StandaloneTruck_Doc_CreatedBy;
                    truckDocDetailsEntity.StandaloneTruck_Doc_CreatedDate = item.StandaloneTruck_Doc_CreatedDate;
                    truckDocDetailsEntity.StandaloneTruck_Doc_LastUpdatedDate = item.StandaloneTruck_Doc_LastUpdatedDate;

                    ESalesUnityContainer.Container.Resolve<IGenericRepository<standalonetruckdocdetail>>()
                        .Update(truckDocDetailsEntity);
                }
                else
                {
                    AutoMapper.Mapper.Map(item, truckDocDetailsEntity);
                    ESalesUnityContainer.Container.Resolve<IGenericRepository<standalonetruckdocdetail>>()
                        .Save(truckDocDetailsEntity);
                }
            }
        }