public async Task <IActionResult> PutVentureTimeRecurring(Guid key, VentureTimeRecurring VentureTimeRecurring) { if (key != VentureTimeRecurring.VentureTimeRecurringKey) { return(BadRequest()); } _dbContext.Entry(VentureTimeRecurring).State = EntityState.Modified; try { await _dbContext.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!VentureTimeRecurringExists(key)) { return(NotFound()); } else { throw; } } return(NoContent()); }
public async Task <ActionResult <VentureTimeRecurring> > PostVentureTimeRecurring(VentureTimeRecurring VentureTimeRecurring) { _dbContext.VentureTimeRecurring.Add(VentureTimeRecurring); await _dbContext.SaveChangesAsync(); return(CreatedAtAction("GetVentureTimeRecurring", new { key = VentureTimeRecurring.VentureTimeRecurringKey }, VentureTimeRecurring)); }