public async Task <IHttpActionResult> GetApiActivityLogsByUser(string userName, [FromUri] Pagination paginationModel) => Ok(await ApiActivityLogService.GetAllByUserAsync(userName, paginationModel.Page, paginationModel.PageSize));
public async Task <IHttpActionResult> GetApiActivityLog(long id) => Ok(await ApiActivityLogService.GetByIdAsync(id));
public async Task <IHttpActionResult> GetApiActivityLogs([FromUri] Pagination paginationModel) => Ok(await ApiActivityLogService.GetAllAsync(paginationModel.Page, paginationModel.PageSize));
public async Task <IHttpActionResult> DeleteApiActivityLogs() { await ApiActivityLogService.RemoveAllAsync(); return(Ok()); }
public async Task <IHttpActionResult> DeleteApiActivityLog(long id) { await ApiActivityLogService.RemoveAsync(id); return(Ok()); }
public async Task <IHttpActionResult> GetApiActivityLogsByHost(string hostAddress, [FromUri] Pagination paginationModel) => Ok(await ApiActivityLogService.GetAllByHostAddressAsync(hostAddress, paginationModel.Page, paginationModel.PageSize));