public async Task <ActionResult <Domain.Models.Signup> > PostTemsilciOl(Domain.Models.Signup temsilciOl) { _context.Signup.Add(temsilciOl); await _context.SaveChangesAsync(); return(CreatedAtAction("GetTemsilciOl", new { id = temsilciOl.Id }, temsilciOl)); }
public async Task <IActionResult> PutTemsilciOl(int id, Domain.Models.Signup temsilciOl) { if (id != temsilciOl.Id) { return(BadRequest()); } _context.Entry(temsilciOl).State = EntityState.Modified; try { await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!TemsilciOlExists(id)) { return(NotFound()); } else { throw; } } return(NoContent()); }