public async System.Threading.Tasks.Task <ActionResult> ColorMaster() { List <ColorMaster> _master = new List <ColorMaster>(); _master = Commonhelper.GetColor(); return(View(_master)); }
private static IEnumerable <ColorMaster> GetColorMaster() { List <ColorMaster> _master = new List <ColorMaster>(); using (var ctx = new ApplicationDbContext()) { _master = Commonhelper.GetColor(); } return(_master); }