public async Task <JsonResult> GetReminderById([FromQuery] string id) { var model = await _reminderService.GetReminderById(id); var result = new ReminderListingViewModel(model); return(Json(result)); }
public async Task <JsonResult> GetIncomingRemindersByOwnerId([FromQuery] string ownerId, [FromQuery] int page, [FromQuery] int threadsPerPage = 10) { var model = await _reminderService.GetIncomingRemindersByOwnerId(ownerId, page, threadsPerPage); var result = new ReminderListingViewModel(model); return(Json(result)); }
public async Task <JsonResult> GetAllReminders([FromQuery] int page, [FromQuery] int threadsPerPage = 10) { var model = await _reminderService.GetReminders(page, threadsPerPage); var result = new ReminderListingViewModel(model); return(Json(result)); }