public async Task <Reclamations> createrec(Reclamations reclamation) { db.reclamations.Add(reclamation); await db.SaveChangesAsync(); return(reclamation); }
public async Task <IActionResult> create(Reclamations reclamations) { if (!ModelState.IsValid) { return(BadRequest()); } var rec = await _reclamationService.createrec(reclamations); return(Ok(rec)); }
public void Remove(Reclamations reclamation) { _context.Reclamations.Remove(reclamation); }
public void Add(Reclamations reclamation) { _context.Reclamations.Add(reclamation); }