Exemplo n.º 1
0
 public string AgregarEmpresa(string strDatos)
 {
     try
     {
         JObject parametrosJO = JObject.Parse(strDatos);
         string  strEntidad   = parametrosJO.Property("Entidad").Value.ToString();
         Empresa empresa      = serializer.Deserialize <Empresa>(strEntidad);
         string  strIdEmpresa = servicioMantenimiento.AgregarEmpresa(empresa);
         return(strIdEmpresa);
     }
     catch (Exception ex)
     {
         throw new WebFaultException <string>(ex.Message, HttpStatusCode.InternalServerError);
     }
 }