public async Task <IHttpActionResult> PostLiveShowCattegory(LiveShowCattegory liveShowCattegory)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            db.LiveShowCattegories.Add(liveShowCattegory);

            try
            {
                await db.SaveChangesAsync();
            }
            catch (DbUpdateException)
            {
                if (LiveShowCattegoryExists(liveShowCattegory.id))
                {
                    return(Conflict());
                }
                else
                {
                    throw;
                }
            }

            return(CreatedAtRoute("DefaultApi", new { id = liveShowCattegory.id }, liveShowCattegory));
        }
        public async Task <IHttpActionResult> PutLiveShowCattegory(Guid id, LiveShowCattegory liveShowCattegory)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            if (id != liveShowCattegory.id)
            {
                return(BadRequest());
            }

            db.Entry(liveShowCattegory).State = EntityState.Modified;

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

            return(StatusCode(HttpStatusCode.NoContent));
        }
        public async Task <IHttpActionResult> GetLiveShowCattegory(Guid id)
        {
            LiveShowCattegory liveShowCattegory = await db.LiveShowCattegories.FindAsync(id);

            if (liveShowCattegory == null)
            {
                return(NotFound());
            }

            return(Ok(liveShowCattegory));
        }
        public async Task <IHttpActionResult> DeleteLiveShowCattegory(Guid id)
        {
            LiveShowCattegory liveShowCattegory = await db.LiveShowCattegories.FindAsync(id);

            if (liveShowCattegory == null)
            {
                return(NotFound());
            }

            db.LiveShowCattegories.Remove(liveShowCattegory);
            await db.SaveChangesAsync();

            return(Ok(liveShowCattegory));
        }