return GroupList from GroupController

#30
This commit is contained in:
chris.watts90@outlook.com 2017-03-14 22:46:20 +00:00
parent 3e4a6839ee
commit 05436c2faf

View File

@ -18,8 +18,8 @@ namespace WindowsDataCenter
[Route("")]
public IHttpActionResult GetGroups()
{
var groups = _repo.GetGroups();
return Ok(groups);
var groupList = new GroupList {Groups = _repo.GetGroups()};
return Ok(groupList);
}
[HttpPost]