Ejemplo n.º 1
0
        public byte[] HandleChangePermissions(string json)
        {
            ChangePermissionsRequest res = JsonConvert.DeserializeObject <ChangePermissionsRequest>(json);
            Tuple <bool, string>     ans = appointService.ChangePermissions(res.Owner, res.Appoint, res.StoreId, res.Permissions.ToArray());
            string jsonAns = Seralize(new SuccessFailResponse(ans.Item1, ans.Item2));

            return(security.Encrypt(jsonAns));
        }
Ejemplo n.º 2
0
 public override Tuple <bool, string> ChangePermissions(string owner, string appoint, int store, int[] permissions)
 {
     return(appointService.ChangePermissions(owner, appoint, store, permissions));
 }