public async Task <IActionResult> Post([FromBody] RegisterModel model) { try { await _registerService.AddAsync(model); return(Ok()); } catch (CustomExceptions ex) { return(BadRequest(ex.Message)); } catch (Exception ex) { return(BadRequest(ex.Message)); } }