public async Task<IHttpActionResult> PostFuenteFinanciamiento(FuenteFinanciamiento fuenteFinanciamiento)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }

            db.FuentesFinanciamiento.Add(fuenteFinanciamiento);

            try
            {
                await db.SaveChangesAsync();
            }
            catch (DbUpdateException)
            {
                if (FuenteFinanciamientoExists(fuenteFinanciamiento.Id))
                {
                    return Conflict();
                }
                else
                {
                    throw;
                }
            }

            return CreatedAtRoute("DefaultApi", new { id = fuenteFinanciamiento.Id }, fuenteFinanciamiento);
        }
        public async Task<IHttpActionResult> PutFuenteFinanciamiento(string id, FuenteFinanciamiento fuenteFinanciamiento)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }

            if (id != fuenteFinanciamiento.Id)
            {
                return BadRequest();
            }

            db.Entry(fuenteFinanciamiento).State = EntityState.Modified;

            try
            {
                await db.SaveChangesAsync();
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!FuenteFinanciamientoExists(id))
                {
                    return NotFound();
                }
                else
                {
                    throw;
                }
            }

            return StatusCode(HttpStatusCode.NoContent);
        }