public IActionResult PostCigar(Cigar cigar) { Cigar ciggy = _cigarData.Add(cigar, _context.Cigars); if (ciggy.Id == 0) { return(Ok("Already exists!")); } else { _context.Add(ciggy); _context.SaveChanges(); return(Ok("Item added!")); } }