public IActionResult Get(Guid id)
        {
            var emailAccount = _emailAccountFacade.Get(SiteId, id);

            if (emailAccount == null)
            {
                return(NotFound());
            }
            return(Ok(emailAccount));
        }
Beispiel #2
0
        public IActionResult Edit(Guid id)
        {
            var model = _emailAccountFacade.Get(SiteId, id);

            if (model == null)
            {
                return(NotFound());
            }

            return(View(model));
        }
        public void Should_return_model()
        {
            var model = _sut.Get(_siteId, _emailAccountId);

            Assert.NotNull(model);
        }