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