public async Task<IHttpActionResult> PutPincode(string id, Pincode pincode)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }

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

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

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

            return StatusCode(HttpStatusCode.NoContent);
        }
        public async Task<IHttpActionResult> PostPincode(Pincode pincode)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }

            db.Pincodes.Add(pincode);
            await db.SaveChangesAsync();

            return CreatedAtRoute("DefaultApi", new { id = pincode.Id }, pincode);
        }
 public void MarkAsModified(Pincode item)
 {
 }