public async Task <IActionResult> SavePhysicalApperance([FromBody] PhysicalAppearanceModal physicalAppearance)
        {
            if (physicalAppearance.IsNull())
            {
                return(BadRequest(HttpStatusText.InvalidRequest));
            }

            physicalAppearance.UserId = UserContext.Current.UserId;
            return(Ok(await _profileEditManager.PerformSave(physicalAppearance)));
        }
예제 #2
0
        public async Task <IActionResult> SavePhysicalApperance([FromBody] PhysicalAppearanceModal physicalAppearance)
        {
            if (physicalAppearance.IsNull())
            {
                return(BadRequest(new MessageResult {
                    Message = ErrorMessage.BadRequest, Code = StatusCodes.Status400BadRequest
                }));
            }

            physicalAppearance.UserId = UserContext.Current.UserId;
            return(Ok(await _profileEditManager.PerformSave(physicalAppearance)));
        }