예제 #1
0
 public Participantes(PerfilUsuarioDTO perfil)
 {
     this.IdPart = perfil.idParticipante;
     this.Nombre = perfil.nombres;
     this.Edad   = perfil.edad;
     this.Sexo   = perfil.sexo;
     this.Grado  = perfil.grado;
     this.Grupo  = perfil.grupo;
     this.Area   = perfil.area;
     this.Gustos = perfil.gustos;
     this.OpcionesIntercambio = perfil.opcionesIntercambio;
     this.IdUsuario           = perfil.usuario;
 }
예제 #2
0
 public IHttpActionResult GuardarPerfilUsuario(PerfilUsuarioDTO perfil)
 {
     try
     {
         if (participanteBll.ActualizarPerfilParticipante(new Participantes(perfil)))
         {
             return(Ok());
         }
         else
         {
             return(ResponseMessage(new HttpResponseMessage(HttpStatusCode.NotAcceptable)));
         }
     }
     catch (Exception ex)
     {
         throw new HttpResponseException(Request.CreateErrorResponse(HttpStatusCode.InternalServerError, ex.Message));
     }
 }