public async Task <ActionResult <TblOwners> > PostTblOwners(TblOwners tblOwners)
        {
            _context.TblOwners.Add(tblOwners);
            await _context.SaveChangesAsync();

            return(CreatedAtAction("GetTblOwners", new { id = tblOwners.Id }, tblOwners));
        }
        public async Task <IActionResult> PutTblOwners(int id, TblOwners tblOwners)
        {
            if (id != tblOwners.Id)
            {
                return(BadRequest());
            }

            _context.Entry(tblOwners).State = EntityState.Modified;

            try
            {
                await _context.SaveChangesAsync();
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!TblOwnersExists(id))
                {
                    return(NotFound());
                }
                else
                {
                    throw;
                }
            }

            return(NoContent());
        }