예제 #1
0
        public async System.Threading.Tasks.Task <ActionResult> ColorMaster()
        {
            List <ColorMaster> _master = new List <ColorMaster>();

            _master = Commonhelper.GetColor();

            return(View(_master));
        }
예제 #2
0
        private static IEnumerable <ColorMaster> GetColorMaster()
        {
            List <ColorMaster> _master = new List <ColorMaster>();

            using (var ctx = new ApplicationDbContext())
            {
                _master = Commonhelper.GetColor();
            }

            return(_master);
        }