Пример #1
0
        public void CreateClaimHeader(string UserGUID, string passwordShar, MyExpenses.Model.BussinessObjects.ClaimDetails ClaimDetails)
        {
            AddEditClaimBAL = new AddEditClaimBAL();
            AddEditClaimBAL.CreateClaimHeader(UserGUID, passwordShar,ClaimDetails);
            AddEditClaimBAL.OnAddClaimHeaderCompleted +=AddEditClaimBAL_OnAddClaimHeaderCompleted;

        }
Пример #2
0
        public IActionResult Create(MyExpenses obj)
        {
            if (ModelState.IsValid)
            {
                _db.Expenses.Add(obj);
                _db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(obj));
        }
Пример #3
0
        public void UpdateLine(string UserGUID, string password, MyExpenses.Model.BussinessObjects.ClaimDetails ClaimDetails)
        {
            if (CommonFunctions.IsInternetAvailable())
            {
                bookingWA = new BookingWA();

                bookingWA.UpdateLine(Utilities.BuildRequestXml.UpdateLine(UserGUID, password, ClaimDetails));
                bookingWA.OnWebDataAccessEvent += bookingWA_OnWebDataAccessEvent11;
            }
            else
            {
                OnUpdateLineCompleted(900, null);
            }
        }
Пример #4
0
        public void UpdateLine(string UserGUID, string passwordShar, MyExpenses.Model.BussinessObjects.ClaimDetails ClaimDetails)
        {
            AddEditClaimBAL = new AddEditClaimBAL();
            AddEditClaimBAL.UpdateLine(UserGUID, passwordShar, ClaimDetails);
            AddEditClaimBAL.OnUpdateLineCompleted += AddEditClaimBAL_OnUpdateLineCompleted;

        }