/// <summary>
 /// Exports the entire employee data to CSV file
 /// in the same directory as the project
 /// </summary>
 private void ExportToCSV()
 {
     try
     {
         businessLogic.ExportToCSV();
         ResponseMessage = "Downloading completed. . .";
     }
     catch (Exception ex)
     {
         ResponseMessage = "Employee details couldn't be exported due to the error" + ex.Message;
         LoggerHelper.logger.Error("Error in ExportToCSV" + ex.Message);
     }
     finally
     {
         ClearContents();
     }
 }