Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
public async Task <IActionResult> createReminder(int instructorId, int reminderId) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } Reminder reminder = await instructorRepository.GetReminder(reminderId); if (reminder == null) { return(NotFound()); } instructorRepository.RemoveReminder(reminder); await unitOfWork.CompleteAsync(); var response = mapper.Map <Reminder, ReminderResource>(reminder); return(Ok(response)); }