예제 #1
0
 public async Task <IActionResult> GetAccountLogs(
     [FromQuery] string userId,
     string userName,
     string email,
     int type,
     DateTime?dateFrom,
     DateTime?dateTo)
 {
     try
     {
         return(Ok(await _accountLogService.GetAccountLogsAsync(userId: userId,
                                                                userName: userName,
                                                                email: email,
                                                                type: type,
                                                                dateFrom: dateFrom,
                                                                dateTo: dateTo)));
     }
     catch (SerializationException e)
     {
         return(BadRequest($"{e.Message} : {e.Content}"));
     }
 }
예제 #2
0
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='userId'>
 /// </param>
 /// <param name='userName'>
 /// </param>
 /// <param name='email'>
 /// </param>
 /// <param name='type'>
 /// </param>
 /// <param name='dateFrom'>
 /// </param>
 /// <param name='dateTo'>
 /// </param>
 public static object GetAccountLogs(this IAccountLog operations, string userId = default(string), string userName = default(string), string email = default(string), int type = default(int), System.DateTime?dateFrom = default(System.DateTime?), System.DateTime?dateTo = default(System.DateTime?))
 {
     return(operations.GetAccountLogsAsync(userId, userName, email, type, dateFrom, dateTo).GetAwaiter().GetResult());
 }