public IActionResult Edit(int id) { var ReminderModel = _business.Find(id); if (ReminderModel == null) { return(RedirectToAction("", new { Type = TypeMessage.Error, Message = Resource.ResourceManager.GetString("ErrorGenericMessage") })); } return(View(ReminderModel)); }
public IActionResult Get(int id) { var reminderModel = _business.Find(id); if (reminderModel == null) { return(NotFound(new { Type = TypeMessage.Error, Message = Resource.ResourceManager.GetString("ErrorGenericMessage") })); } return(Ok(reminderModel)); }