public byte[] HandleDemoteOwner(string json) { DemoteOwnerRequest res = JsonConvert.DeserializeObject <DemoteOwnerRequest>(json); Tuple <bool, string> ans = appointService.RemoveStoreOwner(res.Appointer, res.Appointed, res.StoreId); string jsonAns = Seralize(new DemoteOwnerResponse(ans.Item1, ans.Item2)); return(security.Encrypt(jsonAns)); }