Exemple #1
0
        public ActionResult DeleteType(int id)
        {
            try
            {
                bool status = false;

                status = _TypeSerivce.DeteleType(id);
                if (status)
                {
                    return(Json(new { success = true, message = "Deleted Successfully...!" }, JsonRequestBehavior.AllowGet));
                }
                else
                {
                    return(Json(new { success = false, message = "Error...!" }, JsonRequestBehavior.AllowGet));
                }
            }
            catch (Exception e) { throw e; }
        }