public IEnumerable <Model> Index() { try { return(objEmployee.GetAllEmployees()); } catch (Exception e) { Console.WriteLine(e.Message); return(null); } }