Exemplo n.º 1
0
        public static List <Management_statusDTO> GetManagement_statusList()
        {
            List <Management_statusDTO> userList = new List <Management_statusDTO>();

            using (SuperGmachEntities db = new SuperGmachEntities())
            {
                foreach (Management_status status in db.ManagementStatuses)
                {
                    userList.Add(Mangagment_status_convert.DALtoDTO(status));
                }
            }
            return(userList);
        }
Exemplo n.º 2
0
 public static Management_statusDTO GetByName(string nameStatuse)
 {
     SuperGmachEntities db = new SuperGmachEntities();
     {
         foreach (Management_status status in db.ManagementStatuses)
         {
             if (status.NameManagement_status == nameStatuse)
             {
                 return(Mangagment_status_convert.DALtoDTO(status));
             }
         }
         return(null);
     }
 }