public async Task <IActionResult> SubScription([FromBody] Subscribe sub) { try { var verification = await SubRepo.Verification(sub.Email); if (verification != null) { throw new Exception("Você já se inscreveu."); } sub.DtCreate = DateTime.Now; await SubRepo.Insert(sub); return(StatusCode(201)); } catch (Exception ex) { return(StatusCode(400, ex.Message)); } }