Some other func

This commit is contained in:
2025-01-06 08:58:17 +01:00
parent 8bbcbfab09
commit a80870b5c3
9 changed files with 118 additions and 19 deletions
@@ -9,9 +9,15 @@ namespace WorkFlowCheck.API.Controllers
public class UserController : ControllerBase
{
[HttpGet]
public ActionResult<ResponseDTO> Get()
public async Task<ApiResponseDTO<UserDTO>> Get()
{
return new ResponseDTO { Message = "Success" };
var userDTO = new UserDTO() { Id = 1, Email = "email", Name = "Name" };
var retVal = new ApiResponseDTO<UserDTO>()
{
IsSuccess = true,
Data = userDTO
};
return retVal;
}
}
}