public IActionResult Index() { var remindersViewModel = _business.GetAll(); if (remindersViewModel == null) { return(RedirectToAction("Index", new { Type = TypeMessage.Error, Message = Resource.ResourceManager.GetString("ErrorGenericMessage") })); } return(View(remindersViewModel)); }
public IActionResult Get() { var remindersModel = _business.GetAll(); if (remindersModel == null) { return(NotFound(new { Type = TypeMessage.Error, Message = Resource.ResourceManager.GetString("ErrorGenericMessage") })); } return(Ok(remindersModel)); }