示例#1
0
        public async Task <ActionResult> Delete(string id, string personId)
        {
            var personGuid = Guid.Parse(Request["personId"]);
            await FaceClient.DeletePersonAsync(id, personGuid);

            return(RedirectToAction("Index", new { id = id }));
        }
示例#2
0
        public async Task <ActionResult> Delete(string id, Guid personId)
        {
            ViewBag.PersonGroupId = id;

            await FaceClient.DeletePersonAsync(id, personId);

            return(RedirectToAction("Index", new { id = id }));
        }