コード例 #1
0
        public ActionResult Delete_Post(int ShipperID)
        {
            try     // handle exogenous exceptions
            {
                try // log all exceptions
                {
                    ShippersBusinessModelLayers shippersBusinessModelLayers = new ShippersBusinessModelLayers();

                    //mm
                    shippersBusinessModelLayers.DeleteShippers(ShipperID);


                    return(RedirectToAction("List"));
                }
                catch (Exception ex)
                {
                    BusinessLayer.ExceptionLogging exlog = new BusinessLayer.ExceptionLogging();
                    exlog.SendExcepToDB(ex);
                    throw;
                }
            }
            catch (Exception)
            {
                throw;
            }
        }