Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
public IActionResult UpdateTicket(int id, [FromBody] Ticket t) { if (t == null || t.Id != id) { return(BadRequest()); } var f = _repositiry.GetTickets().FirstOrDefault(x => x.Id == id); if (f == null) { return(NotFound()); } _repositiry.AddTicket(t); return(new NoContentResult()); }