/// <summary>
        /// Save And Update Bussiness Type
        /// </summary>
        /// <param name="businessTypeDetails"></param>
        /// <returns></returns>
        public int SaveAndUpdateBusinessType(BusinessTypeDTO businessTypeDetails)
        {
            businesstype businessTypeEntity = new businesstype();
            AutoMapper.Mapper.Map(businessTypeDetails, businessTypeEntity);

            if (businessTypeEntity.BusinessType_Id == 0)
            {
                base.BusinessTypeRepository.Save(businessTypeEntity);
            }
            else
            {
                base.BusinessTypeRepository.Update(businessTypeEntity);
            }
            return businessTypeEntity.BusinessType_Id;
        }
     private void Fixupbusinesstype(businesstype previousValue)
     {
         if (previousValue != null && previousValue.liftinglimit_history.Contains(this))
         {
             previousValue.liftinglimit_history.Remove(this);
         }
 
         if (businesstype != null)
         {
             if (!businesstype.liftinglimit_history.Contains(this))
             {
                 businesstype.liftinglimit_history.Add(this);
             }
             if (LiftingLimit_BusinessTypeID != businesstype.BusinessType_Id)
             {
                 LiftingLimit_BusinessTypeID = businesstype.BusinessType_Id;
             }
         }
     }
     private void Fixupbusinesstype(businesstype previousValue)
     {
         if (previousValue != null && previousValue.customers.Contains(this))
         {
             previousValue.customers.Remove(this);
         }
 
         if (businesstype != null)
         {
             if (!businesstype.customers.Contains(this))
             {
                 businesstype.customers.Add(this);
             }
             if (Cust_BusinessType != businesstype.BusinessType_Id)
             {
                 Cust_BusinessType = businesstype.BusinessType_Id;
             }
         }
     }