[HttpGet]
[Route("GetStudents")]
public IActionResult GetAllStudents()
{
var obj = new Student
Name = "Adi",
Id = 1
};
HttpContext.Response.Headers.Add("x-custom-header-from-action 1", "my custom value 1");
return Ok(obj);
}
No comments:
Post a Comment