|
@@ -30,8 +30,8 @@ namespace UnivateProperties_API.Controllers.Properties
|
30
|
30
|
return new OkObjectResult(_Repo.GetDetailed(x => x.Id == id));
|
31
|
31
|
}
|
32
|
32
|
|
33
|
|
- [HttpGet("search/{type}/{keyword}")]
|
34
|
|
- public IActionResult Get(string type, string Keyword)
|
|
33
|
+ [HttpGet("search/{keyword}")]
|
|
34
|
+ public IActionResult Search(string Keyword)
|
35
|
35
|
{
|
36
|
36
|
return new OkObjectResult(_Repo.GetDisplay(Keyword));
|
37
|
37
|
}
|
|
@@ -42,6 +42,12 @@ namespace UnivateProperties_API.Controllers.Properties
|
42
|
42
|
return new OkObjectResult(_Repo.GetDisplay(type, propertyType, province, city, suburb, propType));
|
43
|
43
|
}
|
44
|
44
|
|
|
45
|
+ [HttpGet("latestProperties")]
|
|
46
|
+ public IActionResult GetLatestProperties()
|
|
47
|
+ {
|
|
48
|
+ return new OkObjectResult(_Repo.GetLatestDisplay());
|
|
49
|
+ }
|
|
50
|
+
|
45
|
51
|
[HttpGet("{type}/{by}")]
|
46
|
52
|
public IActionResult SearchBy(string type, string by)
|
47
|
53
|
{
|