public async Task <IActionResult> SaveUserModelingDetails([FromBody] UserModelingModel userModelingModel)
        {
            if (userModelingModel.IsNull())
            {
                return(BadRequest(HttpStatusText.InvalidRequest));
            }

            var isSuccess = await _profileEditManager.SaveUserModelingDetailsAsync(userModelingModel);

            if (isSuccess)
            {
                return(Ok(isSuccess));
            }

            return(StatusCode(StatusCodes.Status304NotModified, this));
        }
Exemplo n.º 2
0
        public async Task <IActionResult> SaveUserModelingDetails([FromBody] UserModelingModel userModelingModel)
        {
            if (userModelingModel.IsNull())
            {
                return(BadRequest(new MessageResult {
                    Message = ErrorMessage.BadRequest, Code = StatusCodes.Status400BadRequest
                }));
            }

            var isSuccess = await _profileEditManager.SaveUserModelingDetailsAsync(userModelingModel);

            if (isSuccess)
            {
                return(Ok(isSuccess));
            }

            return(StatusCode(StatusCodes.Status304NotModified, new MessageResult {
                Message = "", Code = 0
            }));
        }