public IHttpActionResult PutGenreMaster(long id, GenreMaster genreMaster)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }

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

            db.InsertOrUpdate(genreMaster);

            try
            {
                db.Save();
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!GenreMasterExists(id))
                {
                    return NotFound();
                }
                else
                {
                    throw;
                }
            }

            return StatusCode(HttpStatusCode.NoContent);
        }
        public IHttpActionResult PostGenreMaster(GenreMaster genreMaster)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }

            db.InsertOrUpdate(genreMaster);
            db.Save();

            return CreatedAtRoute("DefaultApi", new { id = genreMaster.genre_id }, genreMaster);
        }