Esempio n. 1
0
        // map contract to entity
        public static EquityQuestionTemplate QuestionTemplateContractToEntity(EquityQuestionTemplateContract contract)
        {
            var entity = new EquityQuestionTemplate
            {
                Id        = contract.Id,
                CreatedBy = contract.CreatedBy,
                IsActive  = contract.IsActive,
                Question  = contract.Question
            };

            return(entity);
        }
Esempio n. 2
0
        // map entity to contract
        public static EquityQuestionTemplateContract QuestionTemplateEntityToContract(EquityQuestionTemplate entity)
        {
            var contract = new EquityQuestionTemplateContract
            {
                Id        = entity.Id,
                CreatedBy = entity.CreatedBy,
                IsActive  = entity.IsActive,
                Question  = entity.Question
            };

            return(contract);
        }