public IActionResult AddEmployee([FromBody] Employee employee) { if (employee != null) { employee.CreatedDateTimeUtc = DateTime.Now; } var addEmployee = employeeDataContext.AddEmployee(employee); if (addEmployee) { return(Ok(ApiResponse.CreateSuccessResponse(addEmployee, "Added successfully"))); } else { return(Ok(ApiResponse.CreateSuccessResponse(addEmployee))); } }