Ejemplo n.º 1
0
        public HttpResponseMessage PostActivitatDirigida([FromBody] ActivitatDirigida val)
        {
            var resposta = GimnasRepository.InsertActivitatDirigida(val);
            HttpResponseMessage response = Request.CreateResponse(HttpStatusCode.OK, resposta);

            return(response);
        }
Ejemplo n.º 2
0
 public ActivitatDirigidaDAO(ActivitatDirigida a)
 {
     this.Id          = a.Id;
     this.nom         = a.nom;
     this.descripcio  = a.descripcio;
     this.tipologia   = a.tipologia;
     this.intensitat  = a.intensitat;
     this.image       = a.image;
     this.Category_Id = a.Category_Id;
 }