// POST: api/Costos public ID Post([FromBody] Costos Datos) { if (Datos == null) { throw new HttpResponseException(HttpStatusCode.BadRequest); } return(new ID(ClassBD.AgregarCosto(Datos))); }