Exemplo n.º 1
0
        public JsonResult zipcodeinworkshopdelete(string idwo, string zipcode)
        {
            try
            {
                var    user   = (dynamic)null;
                string idUser = System.Web.HttpContext.Current.Session["SessionUser"] as String;
                if (idUser != null && idUser != "")
                {
                    Workshop us = new Workshop();

                    user = us.DeleteZipcode(Convert.ToInt32(idwo), Convert.ToInt32(zipcode));
                    if (user != null || user.Count >= 0)
                    {
                        return(Json(user, JsonRequestBehavior.AllowGet));
                    }
                    else
                    {
                        return(Json(new { Success = false }));
                    }
                }
                else
                {
                    return(Json(new { Success = false }));
                }
            }
            catch (Exception ex)
            {
                throw;
            }
        }