Exemplo n.º 1
0
    public String responsavelDel(String json)
    {
        int i = 0;

        try
        {
            // Deserializando a string para Object
            JavaScriptSerializer serializer = new JavaScriptSerializer();
            BeanResponsavel      obje       = serializer.Deserialize <BeanResponsavel>(json);

            ResponsavelDAO resp = new ResponsavelDAO();
            i = resp.deleteUsuario(obje);
        }
        catch (WebException ex)
        {
            Debug.WriteLine("Erro: " + ex);
        }
        return(i.ToString());
    }