public IActionResult GetCustomer() { var result = new ObjectResult(_customerRepository.GetAll()) { StatusCode = (int)HttpStatusCode.OK }; Request.HttpContext.Response.Headers.Add("X-Count", _customerRepository.CountCustomer().ToString()); Request.HttpContext.Response.Headers.Add("X-Name", "Homoro"); return(result); }