public DalControlName MapToDal(BllControlName entity)
        {
            DalControlName dalEntity = new DalControlName
            {
                Id   = entity.Id,
                Name = entity.Name
            };

            return(dalEntity);
        }
        public BllControlName MapToBll(DalControlName entity)
        {
            if (entity != null)
            {
                BllControlName bllEntity = new BllControlName
                {
                    Id   = entity.Id,
                    Name = entity.Name
                };

                return(bllEntity);
            }
            return(null);
        }
예제 #3
0
 public BllCertificate GetCertificateByEmployeeAndControlName(BllEmployee employee, BllControlName name)
 {
     return(mapper.MapToBll(uow.Certificates.GetCertificateByEmployeeIdAndControlId(employee.Id, name.Id)));
 }