コード例 #1
0
ファイル: ContactController.cs プロジェクト: Krokodil007/PM
        public async Task <ActionResult> UpdateApproved(string contactGuid, bool approved)
        {
            try
            {
                var user             = HttpContext.User;
                var serviceGroupGuid =
                    await UserIdentitInfo.GetUserServiceGroup(user.FindFirstValue(ClaimTypes.NameIdentifier));

                await ContactInfo.ContactApprovedUpd(contactGuid, approved, serviceGroupGuid);

                return(new OkResult());
            }
            catch (Exception e)
            {
                return(new StatusCodeResult(500));
            }
        }