This commit is contained in:
@@ -110,6 +110,34 @@ namespace AyaNova.Api.Controllers
|
|||||||
// return Ok(ret);
|
// return Ok(ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// TEST list with relationships
|
||||||
|
///
|
||||||
|
/// Required roles: Any (some roles might have restrictions on exact fields that are returned)
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="pagingOptions">Paging, filtering and sorting options</param>
|
||||||
|
/// <returns>Collection with paging data</returns>
|
||||||
|
[HttpGet("TestGetWidgetUserEmailList", Name = nameof(TestGetWidgetUserEmailList))]
|
||||||
|
public ActionResult TestGetWidgetUserEmailList([FromQuery] ListOptions pagingOptions)
|
||||||
|
{
|
||||||
|
if (serverState.IsClosed)
|
||||||
|
return StatusCode(503, new ApiErrorResponse(ApiErrorCode.API_CLOSED, null, serverState.Reason));
|
||||||
|
|
||||||
|
if (!ModelState.IsValid)
|
||||||
|
return BadRequest(new ApiErrorResponse(ModelState));
|
||||||
|
|
||||||
|
//Instantiate the business object handler
|
||||||
|
WidgetBiz biz = WidgetBiz.GetBiz(ct, HttpContext);
|
||||||
|
|
||||||
|
ApiPagedResponse pr = biz.TestGetWidgetUserEmailList(Url, nameof(List), pagingOptions).Result;
|
||||||
|
return Ok(new ApiOkWithPagingResponse(pr));
|
||||||
|
// string ret= biz.GetList(Url, nameof(List), pagingOptions).Result;
|
||||||
|
// return Ok(ret);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// /// <summary>
|
// /// <summary>
|
||||||
// /// Get paged list of widgets
|
// /// Get paged list of widgets
|
||||||
|
|||||||
@@ -408,7 +408,7 @@ namespace AyaNova
|
|||||||
// ******************** TESTING WIPE DB *****************************
|
// ******************** TESTING WIPE DB *****************************
|
||||||
//
|
//
|
||||||
//Set this to true to wipe the db and reinstall a trial license and re-seed the data
|
//Set this to true to wipe the db and reinstall a trial license and re-seed the data
|
||||||
var TESTING_REFRESH_DB = true;//#######################################################################################
|
var TESTING_REFRESH_DB = false;//#######################################################################################
|
||||||
|
|
||||||
#if (DEBUG)
|
#if (DEBUG)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user