public HttpResponseMessage PostActivitatDirigida([FromBody] ActivitatDirigida val) { var resposta = GimnasRepository.InsertActivitatDirigida(val); HttpResponseMessage response = Request.CreateResponse(HttpStatusCode.OK, resposta); return(response); }
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; }