public bool Details(int?id) { try { objEmployee.GetEmployeeData(id); return(true); } catch (Exception e) { Console.WriteLine(e.Message); return(false); } }