public JsonResult DeleteEducation(int ID)
        {
            TransactionObject response = educationComplexManager.DeleteEducation(ID);

            if (response.IsSuccess)
            {
                return(Json(new{ IsSuccess = true }));
            }

            else
            {
                return(Json(new { IsSuccess = false, Error = response.Explanation }));
            }
        }
Ejemplo n.º 2
0
        public IHttpActionResult DeleteEducation(int ID)
        {
            TransactionObject response = educationComplexManager.DeleteEducation(ID);

            if (response.IsSuccess)
            {
                return(Ok());
            }

            else
            {
                return(BadRequest(response.Explanation));
            }
        }