Exemplo n.º 1
0
        public ActionResult DeleteSalesRecord(long iSaleID, int iSaleFrontEndID)
        {
            bool status = false;

            try
            {
                if (ModelState.IsValid)
                {
                    SaleServiceClient service = new SaleServiceClient();

                    status = service.DeleteSalesRecord(iSaleID, iSaleFrontEndID);
                }
            }
            catch (Exception e)
            {
                ModelState.AddModelError("error", "Something Went Wrong!");
                status = false;
                throw e;
            }
            //return View("Index");
            return(new JsonResult {
                Data = new { status = status }
            });
        }