public virtual ApiColumnSameAsFKTableServerResponseModel MapEntityToModel(
            ColumnSameAsFKTable item)
        {
            var model = new ApiColumnSameAsFKTableServerResponseModel();

            model.SetProperties(item.Id,
                                item.Person,
                                item.PersonId);
            if (item.PersonNavigation != null)
            {
                var personModel = new ApiPersonServerResponseModel();
                personModel.SetProperties(
                    item.PersonNavigation.PersonId,
                    item.PersonNavigation.PersonName);

                model.SetPersonNavigation(personModel);
            }

            if (item.PersonIdNavigation != null)
            {
                var personIdModel = new ApiPersonServerResponseModel();
                personIdModel.SetProperties(
                    item.PersonIdNavigation.PersonId,
                    item.PersonIdNavigation.PersonName);

                model.SetPersonIdNavigation(personIdModel);
            }

            return(model);
        }
        public virtual ApiColumnSameAsFKTableServerResponseModel MapServerRequestToResponse(
            int id,
            ApiColumnSameAsFKTableServerRequestModel request)
        {
            var response = new ApiColumnSameAsFKTableServerResponseModel();

            response.SetProperties(id,
                                   request.Person,
                                   request.PersonId);
            return(response);
        }