// 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); }
// 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); }