示例#1
0
文件: SetApi.cs 项目: tgijsola/Climb
        public async Task <IActionResult> ChallengeUser(int requesterID, int challengedID, string message)
        {
            try
            {
                var request = await setService.RequestSetAsync(requesterID, challengedID, message);

                return(CodeResultAndLog(HttpStatusCode.Created, request, $"Member {requesterID} challenged {challengedID}."));
            }
            catch (Exception exception)
            {
                return(GetExceptionResult(exception, new { requesterID, challengedID }));
            }
        }