Example #1
0
        public string Submit()
        {
            var session = ServiceLocator.Current.GetInstance <ISessionFactory>().GetCurrentSession();

            if (Applier.Message.Length == 0 && Replier.Message.Length == 0)
            {
                Applier.Submit();
                Replier.Submit();
                return(LanguageReader.GetValue("Shifts_BoxPairSwap_Success"));
            }
            session.Transaction.Rollback();
            return(WithMessage());
        }