示例#1
0
        public IHttpActionResult AppointFinalConfirm(AppointConfirmModel model)
        {
            if (!ModelState.IsValid)
            {
                return(Json(_responseProvider.GenerateBadRequestResponse(ModelState)));
            }
            try
            {
                var res = _groupManager.AppointFinalConfirm(int.Parse(User.Identity.GetUserId()), model);

                return(Json(_responseProvider.GenerateResponse(new List <string> {
                    res
                }, "AppointFinalConfirm")));
            }
            catch (Exception e)
            {
                _logProvider.Log(Tag, "AppointFinalConfirm", e.Message);
            }
            return(Json(_responseProvider.GenerateUnknownErrorResponse()));
        }