Example #1
0
        public JsonResult Delete(int id)
        {
            try
            {
                _marketServices.DeleteMarketRoute(id, CurrentUserId);

                return(Json(new { success = true }));
            }
            catch (Exception e)
            {
                return(Json(new { success = false, message = e.InnerException }));
            }
        }