public bool SalesReasonDelete(SalesReason salesreason)
        {
            return Execute<bool>(dal =>
            {
                SalesReason salesreasonDelete = dal.SalesReason.Where(x => x.SalesReasonID == salesreason.SalesReasonID).FirstOrDefault();
                if (salesreasonDelete != null)
                {
                    dal.SalesReason.DeleteOnSubmit(salesreasonDelete);
                    dal.SubmitChanges();
                    return true;
                }
                return false;

            });
        }
        public bool SalesReasonUpdate(SalesReason salesreason)
        {
            return Execute<bool>(dal =>
            {
                SalesReason salesreasonUpdate = dal.SalesReason.Where(x => x.SalesReasonID == salesreason.SalesReasonID).FirstOrDefault();
                if (salesreasonUpdate != null)
                {
                    salesreasonUpdate.SalesReasonID = salesreason.SalesReasonID;
                    salesreasonUpdate.Name = salesreason.Name;
                    salesreasonUpdate.ReasonType = salesreason.ReasonType;
                    salesreasonUpdate.ModifiedDate = salesreason.ModifiedDate;

                    dal.SubmitChanges();
                    return true;
                }
                return false;

            });
        }
 partial void DeleteSalesReason(SalesReason instance);
 partial void UpdateSalesReason(SalesReason instance);
 partial void InsertSalesReason(SalesReason instance);
 public void SalesReasonUpdate(SalesReason salesreason)
 {
     adventureWorks_BC.SalesReasonUpdate(salesreason);
 }
 public void SalesReasonAdd(SalesReason salesreason)
 {
     adventureWorks_BC.SalesReasonAdd(salesreason);
 }