public async Task <ActionResult> Get() { var emails = await _emailsRepository.GetAll(); return(new OkObjectResult(emails)); }
public async Task <IEnumerable <TblEmails> > GetAll() { return(await _repository.GetAll()); }