Exemple #1
0
        public async System.Threading.Tasks.Task <ActionResult> DeleteItem(string Id)
        {
            bool   status = false;
            string msg    = string.Empty;

            try
            {
                try
                {
                    Commonhelper.DeleteItemById(Id);
                    msg    = "Item delete successfully!";
                    status = true;
                }
                catch (Exception ex)
                {
                    msg    = "Error in processing";
                    status = false;
                }
            }
            catch (Exception ex)
            {
                msg    = "Error in processing";
                status = false;
            }
            return(Json(new { status, msg }, JsonRequestBehavior.AllowGet));
        }