public ActionResult <ItemResponse <int> > Add(UserProfilesAddRequest model)
        {
            ObjectResult result = null;

            try
            {
                int userId = _authService.GetCurrentUserId();

                int id = _service.Add(model, userId);

                ItemResponse <int> response = new ItemResponse <int>();

                response.Item = id;
                result        = Ok(response);
            }
            catch (Exception ex)
            {
                Logger.LogError(ex.ToString());
                ErrorResponse response = new ErrorResponse(ex.Message);

                result = StatusCode(500, response);
            }


            return(result);
        }
        public ActionResult <ItemResponse <int> > Add(UserProfileAddRequest model)
        {
            int          code     = 201;
            BaseResponse response = null;

            try
            {
                int userId = _authService.GetCurrentUserId();
                int id     = _service.Add(model);
                response = new ItemResponse <int> {
                    Item = id
                };
            }
            catch (Exception ex)
            {
                code     = 500;
                response = new ErrorResponse(ex.Message);
                base.Logger.LogError(ex.ToString());
            }

            return(StatusCode(code, response));
        }