public async Task <IActionResult> SaveUserDancing([FromBody] DancingModel dancingModel)
        {
            if (dancingModel.IsNull())
            {
                return(BadRequest(HttpStatusText.InvalidRequest));
            }

            var isSuccess = await _profileEditManager.SaveUserDancingAsync(dancingModel);

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

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

            var isSuccess = await _profileEditManager.SaveUserDancingAsync(dancingModel);

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

            return(StatusCode(StatusCodes.Status304NotModified, this));
        }