public async Task <IActionResult> AddAsync(ClientesViewModel obj) { try { if (!ModelState.IsValid) { return(BadRequest(MessagesStatics.EntityNotValid)); } await _serviceBase.AddAsync(_mapper.Map <ClientesModel>(obj)); return(CreatedAtAction(nameof(AddAsync), MessagesStatics.SuccessAdd)); } catch { return(BadRequest(MessagesStatics.ErrorAdd)); } }