예제 #1
0
        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));
        }
예제 #2
0
        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));
        }