コード例 #1
0
        public async Task <Reclamations> createrec(Reclamations reclamation)
        {
            db.reclamations.Add(reclamation);
            await db.SaveChangesAsync();

            return(reclamation);
        }
コード例 #2
0
        public async Task <IActionResult> create(Reclamations reclamations)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest());
            }
            var rec = await _reclamationService.createrec(reclamations);

            return(Ok(rec));
        }
コード例 #3
0
 public void Remove(Reclamations reclamation)
 {
     _context.Reclamations.Remove(reclamation);
 }
コード例 #4
0
 public void Add(Reclamations reclamation)
 {
     _context.Reclamations.Add(reclamation);
 }