示例#1
0
        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));
        }
示例#2
0
        public IActionResult Get()
        {
            var remindersModel = _business.GetAll();

            if (remindersModel == null)
            {
                return(NotFound(new { Type = TypeMessage.Error, Message = Resource.ResourceManager.GetString("ErrorGenericMessage") }));
            }

            return(Ok(remindersModel));
        }