Ejemplo n.º 1
0
 public Employee MapToOrm(DalEmployee entity)
 {
     return(new Employee
     {
         id = entity.Id,
         fathername = entity.Fathername,
         function = entity.Function,
         knowledgeCheckDate = entity.KnowledgeCheckDate,
         medicalCheckDate = entity.MedicalCheckDate,
         name = entity.Name,
         sirname = entity.Sirname
     });
 }
Ejemplo n.º 2
0
        public BllEmployee MapToBll(DalEmployee entity)
        {
            BllEmployee bllEntity = new BllEmployee
            {
                Id                 = entity.Id,
                Fathername         = entity.Fathername,
                Function           = entity.Function,
                KnowledgeCheckDate = entity.KnowledgeCheckDate,
                MedicalCheckDate   = entity.MedicalCheckDate,
                Name               = entity.Name,
                Sirname            = entity.Sirname
            };

            return(bllEntity);
        }
Ejemplo n.º 3
0
        public DalEmployee MapToDal(BllEmployee entity)
        {
            DalEmployee dalEntity = new DalEmployee
            {
                Id                 = entity.Id,
                Fathername         = entity.Fathername,
                Function           = entity.Function,
                KnowledgeCheckDate = entity.KnowledgeCheckDate,
                MedicalCheckDate   = entity.MedicalCheckDate,
                Name               = entity.Name,
                Sirname            = entity.Sirname
            };

            return(dalEntity);
        }
Ejemplo n.º 4
0
 public List <UserGroups> GetAllUserGroups()
 {
     return(DbScopeManager.Execute(connection => DalEmployee.GetAllUserGroups(connection)));
 }
Ejemplo n.º 5
0
 public bool IsActiveByGroups(string groups, string userName)
 {
     return(DbScopeManager.Execute(conn => DalEmployee.IsActiveByGroups(conn, groups, userName)));
 }
Ejemplo n.º 6
0
 public List <WMSUserObject> SelectShopsEmployeeByEmailAddress(string emailAddress)
 {
     ParameterChecker.CheckNull(emailAddress, "emailAddress");
     return(DbScopeManager.Execute(conn => DalEmployee.SelectShopsEmployeeByEmailAddress(conn, emailAddress)));
 }