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));
        }
Beispiel #3
0
 public void Remove(Reclamations reclamation)
 {
     _context.Reclamations.Remove(reclamation);
 }
Beispiel #4
0
 public void Add(Reclamations reclamation)
 {
     _context.Reclamations.Add(reclamation);
 }