public async Task<IHttpActionResult> DeleteDistrict(VMPlaceCategory dist)
        {
            if (ModelState.IsValid)
            {
                try
                {
                    PlaceCategory district = _db.PlaceCategories.SingleOrDefault(x => x.Id == dist.Id);
                    if (district != null)
                    {
                        //district.DistrictName = dist.DistrictName;
                        _db.PlaceCategories.Remove(district);
                        await _db.SaveChangesAsync();
                        return Ok();
                    }
                    else
                    {
                        return BadRequest("Cann't find distict");
                    }

                }
                catch (Exception e)
                {
                    return BadRequest("District name could not chage. Please try again");
                }
            }
            else
            {
                return BadRequest("Model is not valid");
            }

        }
        public async Task<IHttpActionResult> AddDistrict(VMPlaceCategory cat)
        {
            if (ModelState.IsValid)
            {
                PlaceCategory _district = new PlaceCategory();
                _district.CategoryName = cat.CategoryName;
                _db.PlaceCategories.Add(_district);
                await _db.SaveChangesAsync();
                return Ok("Successfully added to DataBase");
            }
            else
            {
                return BadRequest("Internal Error");
            }


        }