public IActionResult Get(Guid id) { var emailAccount = _emailAccountFacade.Get(SiteId, id); if (emailAccount == null) { return(NotFound()); } return(Ok(emailAccount)); }
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); }