public ActionResult <ItemResponse <int> > Update(UserProfileUpdateRequest model)
        {
            _service.Update(model);
            SuccessResponse response = new SuccessResponse();

            return(Ok(response));
        }
        public ActionResult <ItemResponse <int> > Update(UserProfileUpdateRequest model)
        {
            int          code     = 200;
            BaseResponse response = null;

            try
            {
                _service.Update(model);
                response = new SuccessResponse();
            }
            catch (Exception ex)
            {
                code     = 500;
                response = new ErrorResponse(ex.Message);
                base.logger.LogError(ex.ToString());
            }

            return(StatusCode(code, response));
        }
        public ActionResult <SuccessResponse> Update(UserProfilesUpdateRequest model)
        {
            int          code     = 200;
            int          userId   = _authService.GetCurrentUserId();
            BaseResponse response = null;

            try
            {
                _service.Update(model, userId);

                response = new SuccessResponse();
            }
            catch (Exception exc)
            {
                code     = 500;
                response = new ErrorResponse(exc.Message);
            }

            return(StatusCode(code, response));
        }