public Response <UserAddModel> Insert(UserAddModel userModel) { var response = new Response <UserAddModel>(); try { var userIns = _mapper.Map <User>(userModel); var user = _userModelDomain.Insert(userIns); response.Data = _mapper.Map <UserAddModel>(user); if (response.Data != null) { response.IsSuccess = true; response.Message = "Registro Exitoso!!!"; } } catch (Exception e) { response.Message = e.Message + "--> InnerException.Message-->" + (e.InnerException != null ? e.InnerException.Message : ""); _logger.LogError(response.Message); } return(response); }