/// <summary> /// Adds new employee /// </summary> private void CreateNewEmployee() { try { Employee newEmployee = new Employee() { name = name, email = email, gender = gender, status = status }; ShowPostMessage = businessLogic.CreateNewEmployee(newEmployee); } catch (Exception ex) { LoggerHelper.logger.Error("Error in CreateNewEmployee" + ex.Message); } finally { ResponseMessage = null; ClearContents(); } }