public async Task <ActionResult <Response> > UpdateUserRecord([FromBody] UserRecordDto UserRecord)
        {
            var payloadUserRecord = UserRecord;
            var UserRecordEntity  = _mapper.Map <UserRecord>(payloadUserRecord);
            var updateUserRecord  = await _UserRecordService.UpdateUserRecord(UserRecordEntity);

            return(StatusCode(200, new Response
            {
                status = true,
                message = "UserRecord was successfully updated",
                data = updateUserRecord
            }));
        }
        public async Task <ActionResult <Response> > CreateUserRecord([FromBody] UserRecordDto UserRecord)
        {
            var payloadUserRecord   = UserRecord;
            var UserRecordEntity    = _mapper.Map <UserRecord>(payloadUserRecord);
            var _UserRecordResponse = await _UserRecordService.CreateUserRecord(UserRecordEntity);

            if (_UserRecordResponse == null)
            {
                return(StatusCode(403, new Response
                {
                    status = false,
                    message = "UserRecord already exists",
                    data = false
                }));
            }

            return(StatusCode(200, new Response
            {
                status = true,
                message = "UserRecord was successfully created.",
                data = _UserRecordResponse
            }));
        }