public async Task <IActionResult> SaveUserActingDetails([FromBody] UserActingModel userActingModel)
        {
            if (userActingModel.IsNull())
            {
                return(BadRequest(HttpStatusText.InvalidRequest));
            }

            var isSuccess = await _profileEditManager.SaveUserActingDetailsAsync(userActingModel);

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

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

            var isSuccess = await _profileEditManager.SaveUserActingDetailsAsync(userActingModel);

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

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