public JsonResult DeleteShop(SuperAdminRequest request)
        {
            if (!isSuperAdmin(request.RootPassword))
            {
                return(_Response.Forbid());
            }

            uint id   = request.Shop.Id;
            Shop shop = _db.Get(id);

            if (shop == null)
            {
                return(_Response.NotFound());
            }

            _db.Delete(id);
            return(_Response.Ok(shop));
        }
        public JsonResult PostShop(SuperAdminRequest request)
        {
            if (!isSuperAdmin(request.RootPassword))
            {
                return(_Response.Forbid());
            }

            Shop shop = request.Shop;

            if (!isShopValid(shop))
            {
                return(_Response.BadRequest());
            }

            shop = _db.Add(shop);

            return(_Response.Ok(shop));
        }