예제 #1
0
        private void AddStore()
        {
            HandlingResult result = ValidateStoreSave();

            if (result.Successed)
            {
                StoreModel model = (StoreModel)result.Result;
                result = _action.Add(model);
                if (result.Successed)
                {
                    MessageHelper.ShowInformationNotify(this, result.Message);
                    LodaData();
                }
                else
                {
                    MessageHelper.ShowErrorNotify(this, result.Message);
                }
            }
            else
            {
                MessageHelper.ShowWarningNotify(this, result.Message);
            }
        }