示例#1
0
        public List <ComboBoxModel> Status()
        {
            List <ComboBoxModel> result = new List <ComboBoxModel>();
            var status = Statuses.GetAll();

            result = status.Select(s => new ComboBoxModel {
                id = s.id_status, Name = s.Name
            }).ToList();
            return(result);
        }