public async Task <ActionResult <TopRatedIndian1> > PostTopRatedIndian1Model(TopRatedIndian1 topRatedIndian1Model)
        {
            _context.topRatedIndian1.Add(topRatedIndian1Model);
            await _context.SaveChangesAsync();

            return(CreatedAtAction("GetTopRatedIndian1Model", new { id = topRatedIndian1Model.id }, topRatedIndian1Model));
        }
        public async Task <IActionResult> PutTopRatedIndian1Model(int id, TopRatedIndian1 topRatedIndian1Model)
        {
            if (id != topRatedIndian1Model.id)
            {
                return(BadRequest());
            }

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

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

            return(NoContent());
        }