/// <summary> /// This create and insert data in elastic search and redis /// </summary> /// <param name="employee"></param> public void Create(Employee employee) { elasticSearch.CreateIndex(); elasticSearch.InsertData(employee); _dataAccessPoint.EmployeeRepository.Store(employee); }
/// <summary> /// Insert employee into elastic search db /// </summary> /// <param name="employee">The employee</param> public void Post([FromBody] Employee employee) { var result = elasticSearch.InsertData(employee); }