public async Task <IActionResult> Post(Locations loc)
        {
            _divectx.Add(loc);
            await _divectx.SaveChangesAsync();

            return(Ok(loc.Id));
        }
        public async Task <IActionResult> Post(DiverInformation dvr)
        {
            _divectx.Add(dvr);
            await _divectx.SaveChangesAsync();

            return(Ok(dvr.Id));
        }
Exemple #3
0
        public async Task <IActionResult> Post(Dives dive)
        {
            _divectx.Add(dive);
            await _divectx.SaveChangesAsync();

            return(Ok(dive.Id));
        }
        public async Task <IActionResult> Post(Certifications cert)
        {
            _divectx.Add(cert);
            await _divectx.SaveChangesAsync();

            return(Ok(cert.Id));
        }