Beispiel #1
0
 public string ObtenerEmpresa(int intIdEmpresa)
 {
     try
     {
         Empresa empresa      = servicioMantenimiento.ObtenerEmpresa(intIdEmpresa);
         string  strRespuesta = "";
         if (empresa != null)
         {
             strRespuesta = serializer.Serialize(empresa);
         }
         return(strRespuesta);
     }
     catch (Exception ex)
     {
         throw new WebFaultException <string>(ex.Message, HttpStatusCode.InternalServerError);
     }
 }